fit-content #119
GoncaloBastos
started this conversation in
Ideas
fit-content
#119
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Spin-off from #114:
Moving discussion regarding a new feature where a parent block size is driven by its content.
Proposed API
Functionality
width
Two separate cases exist when using
width: 'fit-content'
height
Only a single case for height. It should always match content height, regardless of its parent's height.
width & height
Should the content exceed its maximum dimensions, it should overflow from the bottom - see fiddle
Notes
See this for more info on implementation.
Beta Was this translation helpful? Give feedback.
All reactions