Skip to content
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

Refactor code #311

Merged
merged 1 commit into from
May 20, 2022
Merged

Conversation

goremikins
Copy link
Contributor

@wsuwt , @Theeraphat-Sorasetsakul I have refactored the code to what I think it should look like.

Please ensure that screen readers still work and fix tests.

feat(utils): add date timestamps
refactor(clock): use date utils
refactor(clock): refactor code
@cloudflare-workers-and-pages
Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: df27653
Status: ✅  Deploy successful!
Preview URL: https://40a81d06.refinitiv-ui.pages.dev

View logs

@sonarcloud
Copy link

sonarcloud bot commented May 19, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@wsuwt
Copy link
Collaborator

wsuwt commented May 20, 2022

@goremikins I decided that we should keep role as unset. JAWS will skip the text if role is set to spinbutton without focusable tabIndex. In case when label is needed in non-interactive mode, developers can set role="group" and label themselves.

@Theeraphat-Sorasetsakul
Copy link
Collaborator

I'm going to merge this and edit it to no role by default in PR - feat(clock): improve clock accessibility

@Theeraphat-Sorasetsakul Theeraphat-Sorasetsakul merged commit d2f12d2 into feat/clock-a11y May 20, 2022
Theeraphat-Sorasetsakul added a commit that referenced this pull request May 25, 2022
* feat(clock): improve clock accessibility

* feat(phrasebook): clock translations (#311)

* docs(clock): add accessiblity doc

Co-authored-by: Aleksejs <[email protected]>
Co-authored-by: Domrongpon Tanpaibul <[email protected]>
Co-authored-by: wsuwt <[email protected]>
@goremikins goremikins deleted the feat/clock-a11y-refactor branch June 6, 2022 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants