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

Pr/2395 updated #2584

Merged
merged 7 commits into from
Apr 24, 2017
Merged

Pr/2395 updated #2584

merged 7 commits into from
Apr 24, 2017

Conversation

jquense
Copy link
Member

@jquense jquense commented Apr 24, 2017

updated #2395

@taion
Copy link
Member

taion commented Apr 24, 2017

@jquense Should <Modal.Header> use a .sr-only label as well, instead of aria-label?

@jquense
Copy link
Member Author

jquense commented Apr 24, 2017

I didn't change it because the upstream docs use aria-label in that case. There may be more support for it perhaps? Or you just mean the close button in Modal.Header?

@taion
Copy link
Member

taion commented Apr 24, 2017

the upstream docs use an aria-label for the alert close button as well: http://getbootstrap.com/javascript/#alerts-usage

i thought there was something with the .sr-only label working better with more SRs, though

@jquense
Copy link
Member Author

jquense commented Apr 24, 2017

The usage is slightly different tho, since in this case one is a Button and the other is jsut a div. I think the problem is due to JAWS handling of button text, not just it's reading of aria-label (which is does generally)

@taion
Copy link
Member

taion commented Apr 24, 2017

what do you mean? it's a <button> in both cases, no?

@jquense
Copy link
Member Author

jquense commented Apr 24, 2017

what aria-label are we talking about? I was looking at the Modal.Title, do you jsut mean the close button there?

@jquense
Copy link
Member Author

jquense commented Apr 24, 2017

wait...

@jquense
Copy link
Member Author

jquense commented Apr 24, 2017

wtf

@jquense
Copy link
Member Author

jquense commented Apr 24, 2017

nvm I'm confusing two things. yes we should make this consistent with the alert close btn

onClick={createChainedFunction(modal && modal.onHide, onHide)}
>
<span className="sr-only">{closeLabel}</span>
Copy link
Member

Choose a reason for hiding this comment

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

why are these in a different order than on the alert? :p

also do we want to fix the prop name here for good?

Copy link
Member Author

Choose a reason for hiding this comment

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

order shouldn't matter but i can change it. I do want to fix the naming, i forgot this was going into next 👍

Copy link
Member

Choose a reason for hiding this comment

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

better to be consistent than inconsistent between two parallel use cases :p

Copy link
Member Author

Choose a reason for hiding this comment

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

better yet just make it a component

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.

None yet

3 participants