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.

`LabelText` is inline, but really should be a `block` 🤔

See original GitHub issue

I’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

image

Expected

image

This issue humbly requests fixing this by making LabelText a block-level element.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
peterszerzocommented, Oct 5, 2018

@adeelibr you’re welcome to go ahead with the other branch.

2reactions
adeelibrcommented, Sep 22, 2018

@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.

Read more comments on GitHub >

github_iconTop 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 >

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