Change Proposal: Make the border tokens translucent so they keep their contrast on any elevation
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- Meio dia
- Facilidade para iniciantes
- 42/100
- Tipo de issue
- Funcionalidade
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- css, react, typescript
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- TypeScript
- Estrelas
- 9
- Forks
- 4
- Merge médio
- 4d 18h
- PRs com merge (30d)
- 10
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de DiamondLightSource/sci-react-ui
-
Proposal: ship guidance as markdown inside the packageTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertaaccepted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
DiamondLightSource/sci-react-ui#325 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
accepted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
DiamondLightSource/sci-react-ui#283 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
needs-triage
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 50/100
DiamondLightSource/sci-react-ui#387 ·
Mantenedores costumam responder em até 1 dia
-
needs-triage
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 42/100
DiamondLightSource/sci-react-ui#384 ·
Mantenedores costumam responder em até 1 dia
-
needs-triage
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
DiamondLightSource/sci-react-ui#383 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
Todas as issues de DiamondLightSource/sci-react-ui
Issues semelhantes
-
Amélioration du résumé regAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
MTES-MCT/monitorenv#3257 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
salesforce/sa11y#1022 ·
-
area/web platform/ios type/bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
anomalyco/opencode#67504 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Kartographer map markers lose their geo: link on non-English wikisTalvez já em andamento @playlikeboy assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
openzim/mwoffliner#3014 ·
Mantenedores costumam responder em até 1 dia
-
Report: Bloomberg HTAberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 1 dia