Skip to content

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
wants to merge 25 commits into from

Conversation

MelSumner
Copy link
Member

@MelSumner MelSumner commented Jul 1, 2019

Updated to add screenshot of progress:

image

  • refactored class names for elements
  • updated styles to match class names
  • changed some links to buttons
  • refactored functions to do a single thing (at least, that was the goal)
  • added keyboard support for ESC and tab navigation

@MelSumner MelSumner changed the title WIP navbar - resolve some a11y issues navbar - resolve some a11y issues Jul 3, 2019
@MelSumner MelSumner requested a review from mansona July 3, 2019 17:39
@MelSumner MelSumner marked this pull request as ready for review July 3, 2019 17:39
Copy link
Member

@mansona mansona left a comment

Choose a reason for hiding this comment

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

There are a lot of comments in my review but that shouldn't give you the impression that I don't like it 🙈

This is a massive improvement to the code that we had before!! I am so happy that you took a look at this.

There seem to be some issues with it when you click one dropdown and then another (see my point about registering dropdowns in the service).

Let me know if you want me to take a look and maybe implement some of my suggestions 👍

links.forEach((ancor) => {
ancor.addEventListener('blur', () => this.handleBlur());
});
navbar: service(), //TODO also do we need this too?
Copy link
Member

Choose a reason for hiding this comment

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

yes we do (I think anyway). It was used before to register any navbar links and then when we open a dropdown (triggerDropdown) we close all others.

I haven't checked if your implementation needs it any more 🤔 Although it might do because if you click one dropdown after another on this page https://deploy-preview-188--ember-styleguide.netlify.com/components/navbar they stay open. I can take a look at that if you like?

z-index: 100;
}
}
Copy link
Member

Choose a reason for hiding this comment

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

a lot of this file seems to be indented by 2 spaces (but not nested in anything 🤔) is that intentional?

<span></span>
</div>
</form>
{{/if}}
Copy link
Member

Choose a reason for hiding this comment

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

see my comment above, we should probably delete this

@MelSumner
Copy link
Member Author

@mansona we'll have to figure out some of this font sizing stuff- the field guide is great but the practical implementation is resulting in some odd accessibility things. I almost wonder if we write it then abstract the values, instead of vice versa? I'm not sure, let's make sure we talk about it.

@MelSumner
Copy link
Member Author

@mansona can we schedule some time to go through what this needs to be merged?

@MelSumner
Copy link
Member Author

won't be used, closing PR.

@MelSumner MelSumner closed this Oct 7, 2019
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.

2 participants