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

[css-flexbox] flex-shrink: hide #4199

Open
Wes0617 opened this issue Aug 16, 2019 · 0 comments
Open

[css-flexbox] flex-shrink: hide #4199

Wes0617 opened this issue Aug 16, 2019 · 0 comments

Comments

@Wes0617
Copy link
Contributor

Wes0617 commented Aug 16, 2019

Rather than shrinking the element, CSS would just hide it.

For example a <button> normally containing a label and a icon, might hide the label if the <button> gets too small.

<button>
    <img src="icon.png" alt="">
    <span>Label</span>
</button>
button { display: flex; flex-direction: row; }
button > img { flex: 0 0 auto; }
button > span { flex: 1 hide auto; }

I'm not sure how this should work and must be discussed if you are interested. Maybe it should be another property that would intervene only after no further shrinking is possible (i.e. min-width/min-height constraint).

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants