-
Notifications
You must be signed in to change notification settings - Fork 347
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
Review updates to alert example page #291
Comments
This looks good, I’ve made two changes in 5423bf7:
|
@MichielBijl wrote:
OK, sounds good.
Hmmmmm? This is part of what I just undid. Relying on the display script is an important aspect of accuracy and maintainability. If the source code of the example itself is confusing, then I think we need to rework the example or fix the examples/js/example.js. I did notice that example.js does not include html comments and left out the html inside the script template element. But, those are bugs in example.js that should be fixed rather than not using example.js. That aside, What was confusing about the HTML source? Please revert. |
@mcking65 this is what I put in the code block:
This is what example.js put in there:
A couple of things are wrong with this:
While I agree that automatically copying in the code is good for maintenance, it’s no good if the example makes no sense. I won’t pretend that I know how to reliably solve this with JS right now. Maybe you know somebody that is able to do that. That said, I don’t mind keeping the code as shown on the page and the actual code of the example in sync. |
@MichielBijl wrote:
That is the case in all examples, and is easily fixable. I had no idea it was such a distraction. @jongund made the script work that way. So, I raised issue #294.
I added that explanitory text; I will move it out.
Yes, this is also a bug in example.js script. I included it in issue #294.
I would say the example.js output still makes sense; it is just not as clean as we would prefer.
From an editor's perspective, keeping focus on the objectives of the project, It is not a good idea to build inconsistencies like this into our pages. Let's fix the root causes of the problems so we can have consistently well-maintained and high quality content that serves our goals. I would still like to return to the generated output and get issue #294 resolved. |
Okay, I’ll add the example code generation back in. |
@MichielBijl, friendly ping on todo: |
Thanks @MichielBijl. In commit ef34006, I also see 2 additions and 2 deletions in examples/radio/radio-1/radio-1.html. However, I can't tell the difference between the old and new lines. Is that just some incidental white space change? Or, am I not hearing the difference. Friendly reminder, in commit titles, please use the example title and in either the title or body of the message, include the issue link. e.g.:
The |
Err, crap, I was very careful not to commit those changes, but seems I somehow messed up. I changed it back. The change was in the path to the CSS file. I’ve added your suggestion for the commit title as a comment on the commit itself. |
Is it possible to get the alert to remove itself and re speak the alert when you hit the button multiple times so you don't have to reload the page to try the example again? Or maybe even handle multiple types of alerts, e.g. with form validation there may be different alert messages that appear and disappear without the page refreshing and that's often hard to get working correctly with the screen readers. |
@pauljadam, what browser are you using and with which screen reader? I think VoiceOver may have a bug. You shouldn't have to reload the page to retrigger the announcement. It works correctly with NVDA in Firefox and Chrome and with JAWS in Firefox. JAWS has a bug in Chrome. It only announces once with VoiceOver in Chrome. When using VoiceOver, you have to reload the page. I do agree with your feedback about offering examples of other ways to trigger and render so I opened issue #327 to enhance the example. |
Shouldn't the example have lang attributes on it? other than that I am fine with it. |
@mcking65 macOS and Safari latest versions on desktop. I see it does work to speak the alert again on button click with VoiceOver iOS latest so I guess this is a bug with VoiceOver macOS. At first I thought it was the behavior of the demo because when you hit the trigger alert button when the alert is already visible the alert does not disappear and then re appear, it just stays there always visible each time you click it so I was thinking that the visible alert should disappear and then reappear each time you click it for the visual and audio affect. Thanks! |
@jnurthen it should, and now does, thanks! @pauljadam I like the idea of having multiple types of alerts. Only issue I see is that it would complicate the example code quite a bit. In that case I’d like to pull the different alerts from a JSON file with a generic HTML template. I think it’s an interesting idea and definitely something to re-visit for APG 1.2. Thoughts @mcking65 @jnurthen? |
Based on completed reviews and discusssion in March 20 meeting, closing as complete. |
Review changes to the
Alert Example Page
made in commit 9a30de1.
Reviews requested on Feb 17, 2017
The text was updated successfully, but these errors were encountered: