accessibility

Accessibility Skip Nav - Skip to Content (Issue in Safari)

冷暖自知 提交于 2019-12-13 18:59:22
问题 For accessibility I built a skip nav. It's a basic anchor: <div class="skip-nav"> <a href="#content">Skip to content</a> </div> Linked to the content: <section id="content"> <h1>Accessibility Skip Nav Demo</h1> <p>Lorem ipsum...</p> </section> Pressing tab will reveal the "Skip to content" button based on focus. My CSS: .skip-nav a { display: block; z-index: 1; position: absolute; height: 1px; width: 1px; overflow: hidden; clip: rect(1px 1px 1px 1px); left: 10px; top: 35px; white-space:

Pure css drop down menu without js ( if js is disabled) in IE 6?

坚强是说给别人听的谎言 提交于 2019-12-13 17:21:11
问题 I found many css/js menu scripts on various sites they work well is in FF, IE7 and safari, opera if JS is disabled but not in IE 6 and for IE 6 small js file need to add because IE doesnt support hover but my question is can we make pre css dropdown menu for IE6 because IE 6 support :hover on then can we make dropw down menu without javascript for IE6 and all other browsers. ? 回答1: The only legit non-JS workaround albeit nasty is using conditionals and a table element: http://www.cssplay.co

HTML Accessibility Error - Label text is empty?

為{幸葍}努か 提交于 2019-12-13 16:21:54
问题 I keep on getting this error even though the line stated to be containing the error doesn't have a label element? 3.3 Input Assistance: Help users avoid and correct mistakes. Success Criteria 3.3.2 Labels or Instructions (A) Check 188: Label text is empty. Repair: Add text to the label element. Error Line 75, Column 6: <input class="subsubmit" type="reset" value="Reset" id="Reset"> The code is: <section id="subscribeEmail"> <!--This section allows the user the option to subscribe to my blogs

jsx-a11y returning Form label must have associated control when there is an htmlFor

馋奶兔 提交于 2019-12-13 13:05:44
问题 I have this component: // @flow import React, { Element } from 'react'; import styles from './Label.scss'; import cs from 'classnames'; export const Label = ({ id, htmlFor, invalid, required, children }: { id: string, htmlFor: string, invalid: boolean, required: boolean, children: Element<*> }) => <label htmlFor={htmlFor} id={id} required={required} className={cs( styles.label, required ? styles.required : '', invalid ? styles.invalid : '' )} > {children} </label>; Label.displayName = 'Label'

jQuery tab and shift+tab to show navigation

久未见 提交于 2019-12-13 07:40:11
问题 I'm trying to show sub navigation when tabbing on parent items and then hide when tabbing or shift+tabbing out of sub-menu. Here's my JS. I have the first and last statements working, but can't get the last. What am I doing wrong? // Show Child Navigation jQuery('.has-child, .currenthas-child').keydown( function(e) { if (e.keyCode == 9 && !e.shiftKey) { jQuery(this).children().show(); } }); //SHIFT + TAB BUTTON jQuery('.submenu li:first-child').keydown( function(e) { if (e.keyCode == 9 && e

is font/text sizing in % more accessible and manageble than em?

China☆狼群 提交于 2019-12-13 07:28:46
问题 Both article are proving this. http://www.kyleschaeffer.com/best-practices/css-font-size-em-vs-px-vs-pt-vs/ http://www.maxdesign.com.au/presentation/relative/ I want to know SO users view? 回答1: The only differences between % and 100 * em (for setting font size) is that there are a few browser bugs relating to the use of em units (which can be worked around with an explicit body { font-size: 100%; } and then using em units thereafter.) The kyleschaeffer article is, frankly, rubbish. It leaves

Alternative Text in treeview control in asp.net

江枫思渺然 提交于 2019-12-13 02:56:39
问题 I am looking for a solution. My treeview control contains the menuitems for my web application and its populated from a sitemap and it's working fine. Now I need to add alternative text to that menu items created. How can I add alternative text to these treeview items. My treeview code is like below protected void MainMenu_NodeDataBound(object sender, TreeNodeEventArgs e) { var siteMapnode = e.Node.DataItem as SiteMapNode; e.Node.Value = siteMapnode.Url; e.Node.NavigateUrl = string.Empty; e

Android webview do not scroll down accessibility marker

余生长醉 提交于 2019-12-13 02:06:56
问题 In my app webview have HTML text ,when I run app in accessibility mode (Talkback) it do not move accessibility marker down to content on webview, using two finger swipe I can swipe down. How can I set webview so that it marker scroll down when user taps. 回答1: On recent versions of Android, Chrome and WebView use exactly the same engine. Test the same URL / HTML content in Chrome on the same device. If it's not accessible there, then the problem is with your content. Post a new question about

CSS sprites navigation and User with image disabled

馋奶兔 提交于 2019-12-13 02:00:39
问题 I made a css menu with css sprites but the problem is with sprite we don't use inline image we use in background only so if images are disabled in browser then nothing will show . any solution for this ? For example : See this menu and turn off images : http://line25.com/wp-content/uploads/2009/css-menu/demo/demo.html (it will not be seen if images are disabled in browser) this menu is against on this quote Ensure your website works with images disabled Creating a site that relies too heavily

Override TalkBack gestures

≡放荡痞女 提交于 2019-12-13 01:38:01
问题 I have a Input Service and View in it. I need to override some gestures for ExplorationByTouch: e.g.: I want to turn off the double click. Here's a part of code, where I want to do that. Any idea how? @Override public boolean onTouchEvent(MotionEvent e) { final int action = e.getAction(); switch (getActionMasked(action)) { case MotionEvent.ACTION_DOWN: { // Processing the first touch // Index of the first pointer always equals to 0 final int firstIndex = 0; final int identifier = e