fix: aria attributes added to date and time inputs#1070
Draft
Wagner3UB wants to merge 4 commits into
Draft
Conversation
Author
|
Da convertire il componente alla versione 17/18 di Volto, non alla 19 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DatetimeWidget – componenti react-dates e rc-time-picker
Refactor del codice per l’adeguamento alla versione Volto 19, con applicazione della modifica per i widget delle date
Modifica Volto: plone/volto#7494
Questi componenti non accettano nativamente attributi ARIA, quindi non è possibile aggiungere le proprietà necessarie tramite le props per renderli accessibili quando sono obbligatori.
È stato necessario eseguire una scansione quando questi componenti vengono renderizzati, cercando i campi che possono essere modificati dagli utenti e contrassegnandoli come obbligatori.
Purtroppo, il codice risultante non è compatto, a causa della necessità di individuare e applicare esternamente questi attributi agli elementi.
Da fare attenzione:
Se la PR sopraccitata non è stata mergiata, il nostro prodotto sarà più aggiornato rispetto alla versione di Volto.
Se invece il merge è stato effettuato, il componente sarà allineato con quello di Volto.
Internal Documentation:
https://sistemi.redturtle.it/documentazione/progetti/rer-volto-x-io-comune-technical-debt/volto-19/a11y-aria-attributes-added-to-date-and-time-inputs-tp-48386/view