Skip to content

Tri-State Checkbox Example: Restore Focus Appearance and Update Code Style - #1801

Merged
mcking65 merged 33 commits into
mainfrom
update-tri-state-checkbox-js
Oct 12, 2021
Merged

mcking65 merged 33 commits into
mainfrom
update-tri-state-checkbox-js

Conversation

@jongund

@jongund jongund commented Mar 4, 2021 •

Copy link
Copy Markdown
Contributor

I was looking at the mixed checkbox example and I noticed that at some point the accessibility features related to visual focus styling had been removed. I have have updated the example and also added accessibility documentation on the visual focus and hover styling improvements for accessibility.

Preview Link

Changes:

  • Renamed example HTML file: checkbox-mixed.html.
  • Updated JS code to use current coding practices.
  • Changed from using event.keyCode to event.key in event handlers.
  • Restored visual focus styling features that were removed from the example.
  • Added documentation of accessibility features.
  • Updated example to use SVG graphics

Review checklist

@jongund

jongund commented Mar 4, 2021

Copy link
Copy Markdown
Contributor Author

@nschonni
I having the same problem I have had with other pull requests, in that it is giving me an error for something in the examples\index.html file. I have not touched the file, so I am not sure why it is giving me an error.

The examples\index.html file is a generated file, what is it being checked for in my pull requests that could make it fail?

How does this get fixed?

@nschonni

nschonni commented Mar 4, 2021

Copy link
Copy Markdown
Contributor

I think the lint-staged hook might not pick up the file rename. You can manually run npm run reference-tables to update the example file

@jongund

jongund commented Mar 4, 2021

Copy link
Copy Markdown
Contributor Author

@nschonni

That fixed it, thanks!

@jesdaigle jesdaigle left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests failed with 2 unhandled rejections in test/tests/menubar_menubar-navigation.js.

@jongund

jongund commented Apr 14, 2021

Copy link
Copy Markdown
Contributor Author

@jesdaigle

Tests failed with 2 unhandled rejections in test/tests/menubar_menubar-navigation.js.

I did not touch the navigation menubar code, so I am not sure why the navigation menubar example/tests would be affected by my changes. It looks to me all the regression test are passing now. Is there still an issue?

@jongund jongund changed the title Updated mixed checkbox example to restore visual keyboard focus styling feature Checkbox: Updated mixed checkbox example to restore visual keyboard focus styling feature May 7, 2021
@zcorpan
zcorpan force-pushed the update-tri-state-checkbox-js branch from f6cc523 to c382f33 Compare May 10, 2021 22:01
@zcorpan

zcorpan commented May 10, 2021

Copy link
Copy Markdown
Contributor

test/tests/menubar_menubar-navigation.js appears to be failing on main, and indeed this PR doesn't touch that test.

I've rebased this on main and resolved the conflict. Looks good to me.

@zcorpan
zcorpan requested a review from jesdaigle May 10, 2021 22:16

@charmarkk charmarkk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good with Firefox/Chrome and NVDA/JAWS latest. HCM Black and White look good, but with HCM Black and Chrome, it seems like the first checkbox (All Condiments) is not taking on the selected color in Windows settings - the bottom ones (Individual Condiments) do. So perhaps just one thing missing from the mixed checkbox. Not a blocker though, it's still white on black, and nothing is missing!

@mcking65 mcking65 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jongund, I corrected some of the obvious copy/paste issues in the accessibility features, e.g., changed mentions of radio to checkbox, but there is still some incorrect text.

Comment thread examples/checkbox/checkbox-mixed.html Resolved
Comment thread examples/checkbox/checkbox-mixed.html Resolved
Comment thread examples/checkbox/checkbox-mixed.html Resolved
@mcking65 mcking65 changed the title Checkbox: Updated mixed checkbox example to restore visual keyboard focus styling feature Tri-State Checkbox Example: Restore Focus Appearance and Update Code Style Oct 12, 2021
@mcking65 mcking65 added Code Quality Non-functional code changes to satisfy APG code style guidelines and linters Example Page Related to a page containing an example implementation of a pattern QA for APG Examples Related to improve the quality and the acceptance of APG examples labels Oct 12, 2021
@mcking65 mcking65 added this to the 1.2 Release 1 milestone Oct 12, 2021
@mcking65
mcking65 merged commit ee28eda into main Oct 12, 2021
@mcking65
mcking65 deleted the update-tri-state-checkbox-js branch October 12, 2021 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Code Quality Non-functional code changes to satisfy APG code style guidelines and linters Example Page Related to a page containing an example implementation of a pattern QA for APG Examples Related to improve the quality and the acceptance of APG examples

Development

Successfully merging this pull request may close these issues.

6 participants