CharacterCount - Design System
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- react, storybook, typescript
Direzione di ricerca
Inizia studiando il componente FormSelect e il pattern di denominazione collegato, quindi esamina src/design-system/tokens.json, forminput.css e index.css. Crea gli stati e le varianti di CharacterCount descritti nell’issue, aggiungi i token e gli stili richiesti e aggiungi le pagine Storybook MDX Playground, Default, AccessibleTheme, DarkTheme e MaterialTheme con esempi per ogni variante.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
CharacterCount - Design System
1 - Prerequisites
- Host element will have the
.dcx-character-countclass name - Host element will have conditional classes for error state
.dcx-character-count--errorclass name - Host element will have conditional classes for filled state
.dcx-character-count--filledclass name
2 - Overview
2.1 - Possible states
| Name | Description |
|---|---|
| Default | Instance without specific properties defined |
| Disabled | Instance with native input disabled |
| Filled | Instance with value |
| Focus | Instance while receiving focus on native input |
| Error | Instance with validation errors |
2.2 - Variants
| Name | Description |
|---|---|
| Default | Default look & feel |
| Floating | Same as FormSelect we can have a floating label effect |
2.3 - Structure
| Element | Description | Token Name |
|---|---|---|
| CharacterCountBox | The native input itself | formcontrol |
| Label | The label element, acts as placeholder too | formcontrol_label |
| Error | The error message | formcontrol_error |
| Hint | The hint message | formcontrol_hint |
When developing take a close look to the FormSelect component. It is a form element as well, the tokens and styling approach should be similar.
2.4 - Tokens definition
Considerations:
- ❗ Take a close look to the FormSelect component. It is a form element as well, the tokens and styling approach should be similar.
- Add the tokens to
src/design-system/tokens.json - Define all styles in
src/design-system/forminput.css - Add import to the new CSS file in
src/design-system/index.css
Possible tokens:
- color-text-formcontrol
- color-text-formcontrol-filled
- color-text-formcontrol-error
- color-text-formcontrol-floating-filled
- color-text-formcontrol_label
- color-text-formcontrol_label-filled
- color-text-formcontrol_label-error
- color-text-formcontrol_label-floating-error
- etc.
Follow the naming pattern
3 - Storybook
Create the pages for:
- Playground
- Default
- AccessibleTheme
- DarkTheme
- MaterialTheme
On each MDX page make examples for each possible variant
4 - Initial setup
Please follow these steps to create your branch:
git checkout release/1.1.0
git pull
git checkout -b 'feature/forminput-design-system'
- Lingua principale
- TypeScript
- Stelle
- 120
- Fork
- 6
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Capgemini/dcx-react-library
-
`Autocomplete` — hardcoded inline styles cannot be overridden by external CSSForse di nuovo libera @Ibabalola l’ha presa 116 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement
Capgemini/dcx-react-library#707 · 1 assegnatario ·
-
Tabs - State and A11y errorsForse di nuovo libera @fermarinsanchez l’ha presa 495 giorni fa e non c’è nessuna pull request aperta. Apertaa11y bug
Capgemini/dcx-react-library#705 · 1 assegnatario ·
-
design-system
Difficoltà 5/5 Più di una settimana Idoneità per principianti 10/100
Capgemini/dcx-react-library#686 ·
-
Tabs - Design SystemForse di nuovo libera @jgonza16 l’ha presa 797 giorni fa e non c’è nessuna pull request aperta. Apertadesign-system
Capgemini/dcx-react-library#685 · 1 assegnatario ·
-
Details - Design SystemApertadesign-system
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
Capgemini/dcx-react-library#684 ·
Tutte le issue di Capgemini/dcx-react-library
Issue simili
-
freshness freshness:observed-only
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
thoroc/context-radar#282 ·
-
bug P2 rust
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
area: web
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
gabe-santana/arkdraw#25 ·
-
bug require-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
expressjs/expressjs.com#2549 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue hacktoberfest
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
codercops/discord-bot#101 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno