#36192: Use semantic HTML for buttons in Django Admin
-------------------------------------+-------------------------------------
Reporter: Eliana Rosselli | Owner: Eliana
Type: | Rosselli
Cleanup/optimization | Status: assigned
Component: contrib.admin | Version: 5.1
Severity: Normal | Resolution:
Keywords: accessibility | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by Eliana Rosselli:
Old description:
> Right now the Django Admin has some buttons that are actually link tags
> with role="button" set, i.e
> {{{
> <a role="button">
> }}}
>
> We should change these to be proper HTML buttons , and update their CSS
> so they maintain their existing styling. Below is an example of this kind
> of button; in the image, the "Add another Release" button is using an
> anchor element
>
> [[Image(examplebutton.png)]]
New description:
Right now the Django Admin has some buttons that are actually link tags
with role="button" set, i.e
{{{
<a role="button">
}}}
We also have anchor elements with
{{{
<a href="#" >
}}}
that are also acting as buttons. One example is the "Today" button that
can be found next to date and time inputs.
We should change these to be proper HTML buttons , and update their CSS so
they maintain their existing styling. Below is an example of this kind of
button; in the image, the "Add another Release" button is using an anchor
element
[[Image(examplebutton.png)]]
--
--
Ticket URL: <https://code.djangoproject.com/ticket/36192#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/010701952623e5b2-bbdafbac-f55b-4fae-9908-9692b1911f96-000000%40eu-central-1.amazonses.com.