This shows you the differences between two versions of the page.
notices:html-css:garantir-la-visibilite-de-la-prise-de-focus-au-clavier [11 June 2013 at 14:40] Sébastien Delorme (Atalan) [11.2.1. Ensure visibility of focus when set from the keyboard] |
notices:html-css:garantir-la-visibilite-de-la-prise-de-focus-au-clavier [30 December 2013 at 18:27] (current) Sébastien Delorme (Atalan) |
||
---|---|---|---|
Line 12: | Line 12: | ||
The ''outline: none;'' rule must never be applied by default to the focus in the CSS, except in the specific case where the visibility of the focus is then overwritten later in the style sheet. | The ''outline: none;'' rule must never be applied by default to the focus in the CSS, except in the specific case where the visibility of the focus is then overwritten later in the style sheet. | ||
- | If the styles applied to the focus position are considered to be intrusive when navigating with a mouse, it is possible to cancel them with a mouse-click, by using the pseudo-class '':active''. | + | If the styles applied to the focus position are considered to be intrusive when navigating with a mouse, it is possible to cancel them at mouse-click, by using the pseudo-class '':active''. |
For example: | For example: | ||
Line 30: | Line 30: | ||
</code> | </code> | ||
- | Dans ce cas, l'outline est alors modifié à la prise de focus afin de le rendre plus visible dans tous les contextes. | + | In this case, outline is changed with focus to be more visible. |
</note> | </note> |