-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(Textfield): ✨ New Textfield
component
#816
Conversation
Textfield
componentTextfield
component
Storybook preview deployment is available at https://storybook-4lmtbcm7c-designsystemet.vercel.app |
Storybook preview deployment is available at https://storybook-apkeept46-designsystemet.vercel.app |
8fcfe00
to
ed2d4b0
Compare
Storybook preview deployment is available at https://storybook-27obx3mxq-designsystemet.vercel.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very neat! 💯 Just found a possible jsdoc oversight 🤓
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀
⭐️ Nydelig! |
17806f6
to
be983ed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bra jobbet! Vi går altså bort fra InputWrapper
også?
/** The message indicating the remaining character limit. */ | ||
label?: (count: number) => string; | ||
/** The description of the maximum character limit for screen readers. */ | ||
srLabel?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nå ser jeg at dette var her fra før, men jeg er usikker på "srLabel" er et beskrivende nok navn for dette. Skjermlesere er jo bare et eksempel på verktøy som benytter aria-describedby
-attributtet. I praksis brukes det kanskje ikke til så mange andre formål (som jeg vet om i hvert fall), men i utgangspunktet er det jo der for å gjøre dom-en lesbar for alle typer verktøy. Hva med "description" eller noe i de baner?
Ja, jeg sjekket litt rundt på de diverse store og nasjonale designsystemene. Vi kommer nok til å bli tvunget til det uansett. Skal vi ha støtte for SSR og andre teknologier må vi nok finne på å ha eget css bibliotek med en fortståelige css klasser, da funker det dårlig med slike "skeleton" komponenter 🤔 Prøvde gjøre det så rett fram og enkelt som mulig i komponenten, så det ikke blir for uoversiktelig og ikke heller så gale om vi dupliserer oppsette i f.eks andre komponenter. Gjøre ting litt mer composable. |
be983ed
to
ca620f8
Compare
resolves #32
resolves #802
resolves #799
Textfield
component based on new designinput
as possibleinput
prop size.htmlSize
,nativeSize
orinputSize
) for this or havesize
support string literal and number? 🤔