https://bugzilla.wikimedia.org/show_bug.cgi?id=48256

       Web browser: ---
            Bug ID: 48256
           Summary: Use CSS pseudo-elements for brackets in section edit
                    links
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: Unprioritized
         Component: General/Unknown
          Assignee: [email protected]
          Reporter: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

Created attachment 12275
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=12275&action=edit
Demonstration of CSS pseudo-element generated brackets wrapping an edit link.

At present section edit links are wrapped by brackets in the HTML content, like
so:

<span class="mw-editsection">[<a
href="/w/index.php?title=Talk:Example&amp;action=edit&amp;section=1"
title="Edit section: Example">edit</a>]</span>

This makes the links difficult to restyle effectively (for example, I have
several links in the interface appearing as buttons) because the end result
will always be cluttered by the brackets.

I propose replacing the brackets in HTML with brackets generated by CSS
pseudo-elements, as in the attached demonstration. This would allow stylesheet
authors to remove them if desired. It could also allow a new preference setting
for users to hide the brackets if they don't like them.

Considerations:
- Accessibility: screen readers don't, to my knowledge, understand generated
content. As a result, this change would actually improve the accessibility of
MediaWiki to visually-impaired users by eliminating the problem described at
http://blind.wikia.com/wiki/Mediawiki_and_Accessibility#Section_title_and_edit_link
of hearing "left bracket edit right bracket link".
- Browser support: generally very good. http://caniuse.com/#feat=css-gencontent
However, versions of IE prior to 8 do not support generated content. I don't
know what our policy is regarding supporting older versions of Internet
Explorer.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to