-
-
Notifications
You must be signed in to change notification settings - Fork 86
navbar - resolve some a11y issues #188
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
Closed
Closed
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
668ab29
worked on the navbar to resolve some a11y issues
MelSumner 5b434d7
alpha sort properties, unitless line-heights
MelSumner ceec3a2
fixing expanding the navbar
mansona d19eeee
fixed the spelling of anchor
MelSumner bf713ee
no one needs z-index 1000
MelSumner b1af6fd
added some todos
MelSumner 41c5277
added TODOs for how the keyboard navigation should work
MelSumner 3382b2c
added more TODOs
MelSumner 61ed664
added more TODOs
MelSumner eae226d
added functionality to navbar
MelSumner acc1589
hid the toggle for desktop viewports
MelSumner aabd3e0
trying to reset the jsconfig.json file, not sure why it committed
MelSumner b2f75dd
added removeEventListener
MelSumner a6d9f68
added a click event listener
MelSumner ce3c37a
added a TODO for handleBlur
MelSumner 1a8d0e2
a little refactor
MelSumner c809765
extracted keypress to its own function
MelSumner b4645c6
added an active class for the toggle button currently in use
MelSumner 6b9035a
updating styles while working on the website
MelSumner abb938e
more style updates
MelSumner 9894fad
updated some typography and added more styles
MelSumner 5adca24
added section background shape
MelSumner 02b793a
updated the background shape
MelSumner 7073fdb
added es-media element, TODOs and some grid css
MelSumner ab66134
Merge branch 'website-redesign-rfc' into feature/navbar
MelSumner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import Component from '@ember/component'; | ||
import layout from '../../templates/components/es-header/es-brand'; | ||
|
||
export default Component.extend({ | ||
layout | ||
}); | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import Component from '@ember/component'; | ||
import layout from '../../templates/components/es-header/es-search'; | ||
|
||
export default Component.extend({ | ||
layout | ||
}); | ||
MelSumner marked this conversation as resolved.
Show resolved
Hide resolved
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,36 @@ | ||
{{#if (eq link.type "link")}} | ||
<a | ||
class="navbar-link__dropdown" | ||
aria-haspopup="true" | ||
aria-expanded="false" | ||
class="navbar-list-item-link" | ||
href={{link.href}} | ||
tabindex={{if (eq index 0) 0 -1}} | ||
> | ||
{{link.name}} | ||
</a> | ||
{{/if}} | ||
{{#if (eq link.type "dropdown")}} | ||
<a | ||
class="navbar-link__dropdown" | ||
aria-haspopup="true" | ||
aria-expanded="false" | ||
href="javascript:void(0)" | ||
tabindex={{if (eq index 0) 0 -1}} | ||
<button | ||
onclick={{action "toggleDropdown"}} | ||
class="navbar-list-item-dropdown-toggle {{if isDropdownOpen "active"}}" | ||
aria-expanded={{isExpanded}} | ||
> | ||
{{link.name}} | ||
</a> | ||
<ul class="dropdown" role="menu" aria-label={{link.name}}> | ||
{{#each link.items as |item|}} | ||
{{#if (eq item.type "link")}} | ||
<li role="none"> | ||
<a | ||
class="navbar-link__dropdown-item" | ||
href={{item.href}} | ||
tabindex="-1" | ||
> | ||
{{item.name}} | ||
</a> | ||
</li> | ||
{{/if}} | ||
{{#if (eq item.type "divider")}} | ||
<hr> | ||
{{/if}} | ||
{{/each}} | ||
</ul> | ||
</button> | ||
{{#if isDropdownOpen}} | ||
<ul class="navbar-dropdown-list"> | ||
{{#each link.items as |item|}} | ||
{{#if (eq item.type "link")}} | ||
<li class="navbar-dropdown-list-item"> | ||
<a | ||
class="navbar-dropdown-list-item-link" | ||
href={{item.href}} | ||
> | ||
{{item.name}} | ||
</a> | ||
</li> | ||
{{/if}} | ||
{{#if (eq item.type "divider")}} | ||
<li role="separator" class="separator"></li> | ||
{{/if}} | ||
{{/each}} | ||
</ul> | ||
{{/if}} | ||
{{/if}} |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.