question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[ListItemText] Shouldn't be a heading by default

See original GitHub issue
  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

The element rendered by ListItemText should be a span by default.

Current Behavior

The element rendered by ListItemText is a h3 by default.

Context

Headings are usually used, among other things, forr organizing a page’s sections for screen readers and other assistive technologies. Having every list item as a heading might be unnecessary clutter, since not every list item might represent a section on the page. Something like using a span element by default and letting the developer associate a role for the item might be a better idea.

See also: https://www.w3.org/TR/WCAG20-TECHS/G141.html

Your Environment

Tech Version
Material-UI f64c730a3
React 16.3.13
browser Chrome 66

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
adeelibrcommented, May 21, 2018

If no one is working on this, can I?

1reaction
Mortuiecommented, May 10, 2018

If there are no takers and @tuukkao doesn’t want to do it, would I be able to?

Read more comments on GitHub >

github_iconTop Results From Across the Web

[ListItemText] Shouldn't be a heading by default #11319
The element rendered by ListItemText is a h3 by default. Context. Headings are usually used, among other things, forr organizing a page's ...
Read more >
ListItemText API - Material UI
The name MuiListItemText can be used when providing default props or style overrides in the theme. Props. Props of the native component are...
Read more >
Generating href from list item text - javascript
I would like these list items to have the same id and href as the text. Example list item: Current: <li>Heading One</li>. Desired:...
Read more >
Can you spot why this shouldn't work - MSDN - Microsoft
I.E. It doesn't seem to post the page. It works in IE on Godaddy (ver 2.0 asp.net) with this extra bit: SmtpMail.SmtpServer ="relay-hosting.secureserver.net";...
Read more >
Markdownlint Rules - kiki
This rule is intended to ensure document headings start at the top level and is triggered when the first heading in the document...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found