When you attempt to checkout a book that has already been withdrawn the alert message is difficult to read when using screen reader software and also difficult to navigate to as it is in plain text and in a list which is also very far down the html page in some cases.
Created attachment 14577 [details] [review] Added header tags to error message to make it more accessible
Created attachment 14583 [details] [review] Bug #9390 "Item has been withdrawn" alert box difficult to access for screenreader users to test: -checkout a withdrawn book to a patron -check that text is bold -if unsure view page source and check that the header tags are in the html Signed-off-by: Liz Rea <liz@catalyst.net.nz>
I am sorry, but this change produces invalid XHTML. You can test XHTML validity using the W3C validator. If your website is not accessible from the internet, you can copy the whole HTML source code from your browser into the third tab (http://validator.w3.org/#validate_by_input) I think switching around the tags might make the problem go away, but not completely sure.
Could introducing a heading to the dialog box be another solution? Sometimes you will get more than one error/warning message for an item, as it triggers more than one condition at the same time.
See my comment on Bug 9389 about this issue. Can't we accomplish the goal of highlighting the error by adding the heading to the message box itself, with the messages themselves remaining in a list?