`LabelText` is inline, but really should be a `block` 🤔
See original GitHub issueI’m really not sure why we use a span
for LabelText
. It is inline, but all of our designs and implementations have labels on separate lines above other elements. Consider,
Status Quo
Expected
This issue humbly requests fixing this by making LabelText
a block-level element.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:14 (14 by maintainers)
Top Results From Across the Web
Forcing label to flow inline with input that they label
The following CSS class force the label text to flow inline and get clipped if its length is more than max-length of the...
Read more >CSS Inline vs Inline-Block vs Block | SamanthaMing.com
a. inline. Displays an element as an inline element. Any height and width properties will have no effect.
Read more >Inline vs Block Elements - HTML & CSS - SitePoint Forums
Really?? They say <label> is inline and yet I can toggle it back and forth between Inline and Block. My question above why...
Read more >Block-level elements - HTML: HyperText Markup Language
In this article, we'll examine HTML block-level elements and how they differ from inline-level elements.
Read more >HTML Block and Inline Elements - W3Schools
Every HTML element has a default display value, depending on what type of element it is. There are two display values: block and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@adeelibr you’re welcome to go ahead with the other branch.
@peterszerzo I don’t mind doing it in 2 PR’s 😅 Once this PR is done. I’d be more then happy to create a new pull request for
LabelText
to move into it’s own folder.