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

Editor Menubar Example: Improve high contrast support and refactor Javascript #1356

Merged
merged 77 commits into from
Jul 13, 2020
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
093a61f
updated menubar editor example
jongund Mar 18, 2020
e8ab44f
updated tests
jongund Mar 19, 2020
e0b4b82
fixed some bugs
jongund Mar 19, 2020
942c4b9
imporved high contrast styling
jongund Mar 19, 2020
29b598d
fixed css padding bug
jongund Mar 19, 2020
671098d
adjusted css padding for menubar menuitems
jongund Mar 19, 2020
3062abf
updated CSS for border styling
jongund Mar 19, 2020
98f7b8a
fixed issue with failing regression tests
jongund Mar 19, 2020
4c50fc3
added comment
jongund Mar 19, 2020
2fd3c48
updated accessibility documentation
jongund Mar 19, 2020
cd75045
update CSS and event handlers to improve focus and hover styling
jongund Mar 24, 2020
2912f2e
updated focus and hover styling
jongund Mar 25, 2020
fe3600a
restore master package files
jongund Mar 31, 2020
177ca15
updated tests to identify failing tests due to Issue 1358
jongund Mar 31, 2020
65f2ae9
fix spacebar test
smhigley Apr 1, 2020
bd64491
removed issue 1358 reference
jongund Apr 1, 2020
d96c9f7
updated focus styling
jongund Apr 3, 2020
58f5e20
Editorial revisions to accessibility features section for consistency…
mcking65 Apr 14, 2020
8b179e9
Add missing link to style-manager.js
mcking65 Apr 14, 2020
feb190f
Merge branch 'master' into issue1355-update-menubar-editor-js
mcking65 Apr 14, 2020
27e0afd
removed role value normalization
jongund Apr 14, 2020
f2c3e93
added 1 pixel border on menubar to support better high contrast rende…
jongund Apr 20, 2020
30109da
updated focus styling
jongund Apr 22, 2020
03a9073
made changes based on todays conference call
jongund Apr 28, 2020
29eeb88
made changes based on todays conference call
jongund Apr 29, 2020
136ef04
made changes based on todays conference call
jongund Apr 29, 2020
8d4f626
conversted PNG images to SVG
jongund Apr 29, 2020
8f8c886
improved code
jongund Apr 29, 2020
579c1cb
updated menubar editor example
jongund Apr 29, 2020
8385f8b
updated the separator color for color contrast
jongund Apr 29, 2020
5a41939
removed the href from span and updated docuemntation
jongund Apr 29, 2020
576f39e
updated regression test to include more awaits
jongund May 1, 2020
e8d551e
added a few more awaits
jongund May 2, 2020
18f0c66
fixed conflict in regression tests
jongund May 6, 2020
cc5c24f
updated menubar editor example
jongund Mar 18, 2020
7fc4ed1
updated tests
jongund Mar 19, 2020
f1a69c0
fixed some bugs
jongund Mar 19, 2020
6e55dc8
imporved high contrast styling
jongund Mar 19, 2020
4ced0c6
fixed css padding bug
jongund Mar 19, 2020
0359a98
adjusted css padding for menubar menuitems
jongund Mar 19, 2020
61c7afb
updated CSS for border styling
jongund Mar 19, 2020
dfeaca3
fixed issue with failing regression tests
jongund Mar 19, 2020
95b48cb
added comment
jongund Mar 19, 2020
a3efb17
updated accessibility documentation
jongund Mar 19, 2020
0188e87
update CSS and event handlers to improve focus and hover styling
jongund Mar 24, 2020
d2c5341
updated focus and hover styling
jongund Mar 25, 2020
01ef7f0
restore master package files
jongund Mar 31, 2020
bf5810f
updated tests to identify failing tests due to Issue 1358
jongund Mar 31, 2020
d666561
updated focus styling
jongund Apr 3, 2020
09096ac
Editorial revisions to accessibility features section for consistency…
mcking65 Apr 14, 2020
cedcee3
Add missing link to style-manager.js
mcking65 Apr 14, 2020
0b3a895
removed role value normalization
jongund Apr 14, 2020
8ca49e6
added 1 pixel border on menubar to support better high contrast rende…
jongund Apr 20, 2020
b1fe749
updated focus styling
jongund Apr 22, 2020
7461535
made changes based on todays conference call
jongund Apr 28, 2020
36cd4d3
made changes based on todays conference call
jongund Apr 29, 2020
04f7c5f
conversted PNG images to SVG
jongund Apr 29, 2020
56bda10
improved code
jongund Apr 29, 2020
875e89f
updated menubar editor example
jongund Apr 29, 2020
9da2331
updated the separator color for color contrast
jongund Apr 29, 2020
1eb06e6
removed the href from span and updated docuemntation
jongund Apr 29, 2020
b4e76ab
updated regression test to include more awaits
jongund May 1, 2020
e822e9f
added a few more awaits
jongund May 2, 2020
0739a06
merge post-rebase updates
smhigley May 6, 2020
78784fb
Merge branch 'master' into issue1355-update-menubar-editor-js
jongund May 18, 2020
c4b8669
added arrow affordance on pull down menu items for low vision support
jongund May 28, 2020
9844b39
merged updates to master
jongund Jul 6, 2020
b6f0045
added preloading of images
jongund Jul 7, 2020
39a7293
restored package files
jongund Jul 8, 2020
b222f2f
restored regression file
jongund Jul 8, 2020
1b0155c
removed unused regression test file
jongund Jul 8, 2020
5c1140d
restored regression file
jongund Jul 8, 2020
3ed3afa
Merge branch 'master' into issue1355-update-menubar-editor-js
jongund Jul 9, 2020
586e3fe
restored original menubar editor example
jongund Jul 9, 2020
fa4da0b
Merge branch 'master' into issue1355-update-menubar-editor-js
mcking65 Jul 13, 2020
b1498b9
Merge branch 'master' into issue1355-update-menubar-editor-js
mcking65 Jul 13, 2020
d3dd867
Fix spelling of comment
Jul 13, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
179 changes: 179 additions & 0 deletions examples/menubar/css/menubar-editor.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
ul[role="menubar"] {
margin: 0;
margin-top: 0.5em;
margin-bottom: 0.5em;
padding: 7px;
font-size: 110%;
list-style: none;
background-color: #eee;
border: #eee solid 1px;
border-radius: 5px;
}

ul[role="menubar"] li {
margin: 0;
padding: 0;
list-style: none;
}

ul[role="menubar"] > li {
display: inline;
position: relative;
}

ul[role="menubar"] > li > [role="menuitem"]::after {
content: url('../images/down-arrow-brown.png');
padding-left: 0.25em;
}

ul[role="menubar"] ul[role="menu"] {
display: none;
position: absolute;
margin: 0;
padding: 0;
}

ul[role="menubar"] ul[role="group"] {
margin: 0;
padding: 0;
}

ul[role="menubar"] li[aria-disabled="true"] {
color: #666;
text-decoration: line-through;
}

ul[role="menubar"] [role="menuitem"],
ul[role="menubar"] [role="menuitemcheckbox"],
ul[role="menubar"] [role="menuitemradio"],
ul[role="menubar"] [role="separator"] {
padding: 6px;
background-color: #eee;
border: 0px solid #eee;
border-radius: 5px;
color: black;
}

ul[role="menubar"] [role="menu"] [role="menuitem"],
ul[role="menubar"] [role="menu"] [role="menuitemcheckbox"],
ul[role="menubar"] [role="menu"] [role="menuitemradio"],
ul[role="menubar"] [role="menu"] [role="separator"] {
padding-left: 27px;
width: 8em;
}

ul[role="menubar"] [role="separator"] {
padding-top: 3px;
background-image: url('../images/separator.png');
background-position: center;
background-repeat: repeat-x;
}

ul[role="menubar"] [role="menuitem"][aria-expanded="true"] {
padding: 4px;
border: 2px dashed #034575;
}

ul[role="menubar"] [role="menu"] [aria-checked='true'] {
padding: 6px;
padding-left: 10px;
padding-right: 18px;
}

ul[role="menubar"] [role="menu"] [aria-checked='true']::before {
content: url('../images/dot-brown.png');
padding-right: 5px;
}

/* focus and hover styling */

ul[role="menubar"].focus {
padding: 6px;
border: #034575 solid 2px;
}

ul[role="menubar"].focus.item {
padding: 5px;
border: #034575 solid 3px;
}

ul[role="menubar"].focus [role="menu"] {
padding: 8px 5px;
border: 1px solid #034575;
border-radius: 5px;
background-color: #eee;
}

ul[role="menubar"].focus [role="menu"].item {
padding: 6px 3px;
border: 3px solid #034575;
border-radius: 5px;
background-color: #eee;
}

ul[role="menubar"] [role="menuitem"]:focus,
ul[role="menubar"] [role="menuitemcheckbox"]:focus,
ul[role="menubar"] [role="menuitemradio"]:focus {
padding: 2px;
border: 4px dotted #034575;
outline: none;
}


ul[role="menubar"] [role="menuitem"]:hover,
ul[role="menubar"] [role="menuitemcheckbox"]:hover,
ul[role="menubar"] [role="menuitemradio"]:hover {
padding: 4px;
border: 2px solid #034575;
}

ul[role="menubar"] [role="menu"] [role="menuitem"]:focus,
ul[role="menubar"] [role="menu"] [role="menuitemcheckbox"]:focus,
ul[role="menubar"] [role="menu"] [role="menuitemradio"]:focus {
padding-left: 23px;
}

ul[role="menubar"] [role="menu"] [role="menuitem"][aria-checked='true']:focus,
ul[role="menubar"] [role="menu"] [role="menuitemcheckbox"][aria-checked='true']:focus,
ul[role="menubar"] [role="menu"] [role="menuitemradio"][aria-checked='true']:focus {
padding-left: 6px;
padding-right: 18px;
}

ul[role="menubar"] [role="menu"] [role="menuitem"]:hover,
ul[role="menubar"] [role="menu"] [role="menuitemcheckbox"]:hover,
ul[role="menubar"] [role="menu"] [role="menuitemradio"]:hover {
padding-left: 25px;
}


ul[role="menubar"] [role="menu"] [role="menuitem"][aria-checked='true']:hover,
ul[role="menubar"] [role="menu"] [role="menuitemcheckbox"][aria-checked='true']:hover,
ul[role="menubar"] [role="menu"] [role="menuitemradio"][aria-checked='true']:hover {
padding-left: 8px;
padding-right: 18px;
}

/*
* Text area styles
*/
.italic {
font-style: italic;
}

.bold {
font-weight: bold;
}

.underline {
text-decoration: underline;
}

#textarea1 {
padding: 0.5em;
border: 1px solid black;
height: 400px;
width: 70%;
font-size: medium;
font-family: sans-serif;
}
Loading