Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hr width is inherit rather than 100% #6772

Open
1 task done
liambellsage opened this issue Jun 10, 2024 · 1 comment
Open
1 task done

Hr width is inherit rather than 100% #6772

liambellsage opened this issue Jun 10, 2024 · 1 comment

Comments

@liambellsage
Copy link

Description

The docs for the


element state that it has width: 100% by default but that isn't true, it actually has width: inherit
I noticed as a result that the Hr won't display inside a flex container that uses minWidth or maxWidth

Reproduction

https://stackblitz.com/edit/parsium-carbon-starter-pcjqn5?file=src%2FApp.tsx

Steps to reproduce

Render a Hr inside a Box that has display:flex and does not have a value for width

JIRA ticket numbers (Sage only)

No response

Suggested solution

Use width: 100% on Hr instead of width: inherit

Carbon version

133.0.0

Design tokens version

No response

Relevant browsers

Firefox, Chrome

Relevant OSs

Windows

Additional context

No response

Confidentiality

  • I confirm there is no confidential or commercially sensitive information included.
@liambellsage liambellsage added Bug triage Triage Required labels Jun 10, 2024
@DipperTheDan
Copy link
Contributor

FE-6662

@DipperTheDan DipperTheDan added On Backlog Squad Turing and removed triage Triage Required labels Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants