Change Proposal: Make the border tokens translucent so they keep their contrast on any elevation
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- Ein halber Tag
- Anfängerfreundlichkeit
- 42/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- css, react, typescript
Rechercherichtung
The three tokens are CSS custom properties, so start by finding where --ds-border-subtle, --ds-border-emphasis and --ds-border-strong are declared for light and dark modes in the theme source, then grep for the same names to see which components and stories consume them. Compare the exact rgba values in the table against the linked Figma before editing, since this changes the format from hex to rgba(). Done means both modes resolve to the new values, and any visual/snapshot tests and token documentation are updated to match.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
What is being proposed?
--ds-border-subtle, --ds-border-emphasis and --ds-border-strong get a fixed opacity, in light and dark, instead of solid hex colours. Because they are translucent, they get darker (light mode) or lighter (dark mode) along with the surface behind them.
Why is this needed?
The solid borders were picked to look right on lighter shades in light mode, and equivalent in dark mode. Elevation steps change the surface, but not the border, so the border drifts toward the background colour. It is now more obvious as elevation gets more prominence in light mode.
What will change?
| Token | Light | Dark |
|---|---|---|
--ds-border-subtle |
rgba(26, 28, 35, 0.12) |
rgba(232, 234, 240, 0.15) |
--ds-border-emphasis |
rgba(26, 28, 35, 0.27) |
rgba(232, 234, 240, 0.30) |
--ds-border-strong |
rgba(26, 28, 35, 0.40) |
rgba(232, 234, 240, 0.55) |
Breaking change?
- x Yes
Visible, and a change in token format: borders shift slightly in shade, and the three tokens change from hex to rgba(). Consumers that read them as hex strings, or use the subtle channel as the old grey, would be affected.
Next steps
A maintainer will review this issue.
If accepted, it will be marked as accepted and a PR may then be opened.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 9
- Forks
- 4
- Ø Merge
- 4 T. 18 Std.
- Gemergte PRs (30 T.)
- 10
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus DiamondLightSource/sci-react-ui
-
Proposal: ship guidance as markdown inside the packageEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offenaccepted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
DiamondLightSource/sci-react-ui#325 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
accepted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
DiamondLightSource/sci-react-ui#283 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
needs-triage
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 50/100
DiamondLightSource/sci-react-ui#387 ·
Maintainer antworten meist innerhalb von 1 Tag
-
needs-triage
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 42/100
DiamondLightSource/sci-react-ui#384 ·
Maintainer antworten meist innerhalb von 1 Tag
-
needs-triage
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
DiamondLightSource/sci-react-ui#383 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in DiamondLightSource/sci-react-ui
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
MTES-MCT/monitorenv#3257 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
salesforce/sa11y#1022 ·
-
area/web platform/ios type/bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
anomalyco/opencode#67504 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Kartographer map markers lose their geo: link on non-English wikisEvtl. vergeben @playlikeboy hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
openzim/mwoffliner#3014 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Report: Bloomberg HTOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 1 Tag