Paridade Liquid Glass: valores e borda do AC como receita da lib
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- css, typescript
Hướng nghiên cứu
Start in lib/styles/tokens.css (the --ca-blur-regular declarations for light and dark) and lib/styles/materials.css / surface.css, then check base.css where solid is the default; the opt-in path is designStyle("liquid"), added in CHANGELOG a1d14f5. Extend defineTheme with a glass block that writes --ca-blur-regular, --ca-glass-tint, --ca-overlay-bg and --ca-surface-glass-edge, keeping the edge as a box-shadow inset rather than a border, and add an optional glass-ac design style alongside liquid. Done means the four acceptance checks pass: computed backdropFilter contains blur(24px) saturate(180%) under data-style="glass", borderTopWidth stays 0px, the overlay contrast test holds at the 0.94 fill, and light/dark Card VRTs are unchanged.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Versão: @codeatlasdev/ui 4.6.0 · código lido em main (950628f2) · classe: lacuna (migração do AC)
Problema
O AC depende deste comportamento hoje e a lib não o oferece. Sem ele, a migração perde qualidade no desktop, no mobile ou no PWA.
O que a lib já oferece (para não duplicar) e o que falta
Tiers de vidro existem (lib/styles/materials.css e surface.css, raw em 950628f2). Padrão é solid (base.css raw: mesh só em glass/frosted). Clone: --ca-blur-regular em tokens.css tem blur(22px) saturate(190%) claro e saturate(180%) escuro. O AC usa blur(24px) saturate(180%) em tudo. Opt-in de glass é designStyle("liquid") (clone CHANGELOG a1d14f5).
Referência no AC
Caminhos do repo AC (repo privado, só caminho):
packages/ui/src/styles.css:189-200 (claro), :330-340 (escuro), :1329-1348 (.glass-surface, .glass-overlay), packages/ui/src/components/card.tsx:18-19, dialog.tsx:57, sheet.tsx:126, drawer.tsx:102.
Defeitos do AC (verificados por leitura do código): Valores de vidro repetidos como literais em 11 declarações inline (ver D1). O mesmo look não sai de um único token.
Proposta
defineTheme({ glass: { blur: '24px', saturate: '180%', fill: 0.55, overlayFill: 0.94, edge: 'specular' } }), que escreve --ca-blur-regular, --ca-glass-tint, --ca-overlay-bg e --ca-surface-glass-edge. Sem border de vidro. Receita designStyle('glass-ac') opcional, para não quebrar liquid.
Critério de aceite (testável)
- Com
data-style="glass",getComputedStyle(el).backdropFilterde umSurfaceregularcontémblur(24px)esaturate(180%). - A borda de vidro é
box-shadowcominset 0 1px 0:borderTopWidthé0px. -
overlayFillabaixo de 0,94 falha em teste de contraste (≥4,5:1 no texto do overlay). - VRT claro e escuro do
Cardglass sem regressão.
Mãe: #1089
- Ngôn ngữ chính
- TypeScript
- Star
- 6
- Fork
- 3
- Merge trung bình
- 5 giờ 21 phút
- Pull request đã merge (30 ngày)
- 378
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của codeatlasdev/ui
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
codeatlasdev/ui#1340 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:a11y area:components bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
codeatlasdev/ui#1336 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
codeatlasdev/ui#1329 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
codeatlasdev/ui#1292 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:components enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
codeatlasdev/ui#1198 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của codeatlasdev/ui
Issue tương tự
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
sandbox-quantum/switch#2163 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
automated issue report
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area/dashboard kind/bug QA/dev-automation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug pydanty:is-working
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
pydantic/pydantic-ai#13939 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
self-host
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
funmusicplace/mirlo#2625 ·
Maintainer thường phản hồi trong vòng 1 ngày