-
Notifications
You must be signed in to change notification settings - Fork 83
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: Formatting numbers and allowing key navigation on datepicker #2443
Conversation
Dette er vel snarere en |
packages/ffe-datepicker-react/src/datelogic/DatepickerContext.tsx
Outdated
Show resolved
Hide resolved
packages/ffe-datepicker-react/src/datepicker/Datepicker.stories.tsx
Outdated
Show resolved
Hide resolved
packages/ffe-datepicker-react/src/datepicker/Datepicker.spec.tsx
Outdated
Show resolved
Hide resolved
packages/ffe-datepicker-react/src/datepicker/DatepickerComp.tsx
Outdated
Show resolved
Hide resolved
packages/ffe-datepicker-react/src/datepicker/DatepickerComp.tsx
Outdated
Show resolved
Hide resolved
133a78f
to
e173855
Compare
Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-2443.westeurope.2.azurestaticapps.net |
e173855
to
98049ab
Compare
Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-2443.westeurope.2.azurestaticapps.net |
98049ab
to
c318892
Compare
Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-2443.westeurope.2.azurestaticapps.net |
1 similar comment
Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-2443.westeurope.2.azurestaticapps.net |
2e3501e
to
c318892
Compare
Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-2443.westeurope.2.azurestaticapps.net |
c318892
to
8fc2761
Compare
Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-2443.westeurope.2.azurestaticapps.net |
8fc2761
to
bd525bd
Compare
Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-2443.westeurope.2.azurestaticapps.net |
1 similar comment
Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-2443.westeurope.2.azurestaticapps.net |
eb87aed
to
33251fb
Compare
Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-2443.westeurope.2.azurestaticapps.net |
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.
Denne burde ikke sjekkes in
33251fb
to
3744762
Compare
Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-2443.westeurope.2.azurestaticapps.net |
min-width: 4ch; | ||
} | ||
|
||
&:focus { |
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.
Jag tror du har rett her. focus-visible er alternativet men da blir den ikke blå på device.
packages/ffe-datepicker-react/src/datepicker/DatepickerComp.tsx
Outdated
Show resolved
Hide resolved
packages/ffe-datepicker-react/src/datepicker/DatepickerComp.tsx
Outdated
Show resolved
Hide resolved
packages/ffe-datepicker-react/src/datepicker/DatepickerComp.tsx
Outdated
Show resolved
Hide resolved
633bf2e
to
fd667f7
Compare
Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-2443.westeurope.2.azurestaticapps.net |
packages/ffe-datepicker-react/src/datepicker/DatepickerComp.tsx
Outdated
Show resolved
Hide resolved
fd667f7
to
d61ea17
Compare
Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-2443.westeurope.2.azurestaticapps.net |
d61ea17
to
1da6885
Compare
200d745
to
d324eb9
Compare
Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-2443.westeurope.2.azurestaticapps.net |
1 similar comment
Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-2443.westeurope.2.azurestaticapps.net |
packages/ffe-datepicker-react/src/datepicker/Datepicker.stories.tsx
Outdated
Show resolved
Hide resolved
Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-2443.westeurope.2.azurestaticapps.net |
d324eb9
to
54b8bee
Compare
Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-2443.westeurope.2.azurestaticapps.net |
54b8bee
to
bdc20c5
Compare
BREAKING CHANGE: Fjernet inputProps. labelId påkrevd
bdc20c5
to
bdc3549
Compare
Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-2443.westeurope.2.azurestaticapps.net |
1 similar comment
Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-2443.westeurope.2.azurestaticapps.net |
Forslag fra ønskelista.
Har jobbet med å få et mer strengt format på datepickeren.
Utfordringer med oppgaven
Hva som er gjort
Det er implementert muligheten for et strengere format på datepickeren, altså at "dd.mm.yyyy" aldri fjerner ".".
Aria-labels og muligheten til å trykke opp og ned for å øke tallet er også stort sett på plass.
Note:
Det er en kjent bug som er at
<label for="id"/>
ikke fungerer som det skal, det objektet som får "for/id" er ikke et input-felt. I praksis betyr det at vi får en feil i validator her https://validator.w3.org/nu/#textarea, og at man ikke får fokus på feltet når man trykker på labelen. Vi har regnet det som ok med tanke på UU, siden skjermlesere fortsatt får lest opp label (ved bruk avaria-labelledby
).Breaking change
inputProps
er fjernet. Props somonBlur
,aria-describedby
ogaria-invalid
kan sendes inn direkte.Placeholder
er ikke vits lenger, feltet vil aldri være tomt.