Open korgan00 opened 1 year ago
The fluid headings change size with the window size and not between breakpoints.
@korgan00 They do both, here's a screenshot from the elements preview you linked showing the output of the css:
fluid-heading-03
is the same value as $expressive-heading-03
. The spec for this calls for changes at only two breakpoints, xlg
and max
:
@tay1orjones Per documentation words I understood that the size should be fixed per breakpoint:
These headings are responsive and the type styles change size at different breakpoints.
And the implementation inside the demo uses a fixed size too. Is the documentation obsolete?
@tay1orjones
@korgan00 The output through @carbon/react
/@carbon/styles
and the elements preview is correct. The carbondesignsystem.com docs simulate screen width and appear to be adding those inline styles that "chop" the definitions into values for each breakpoint.
My understanding is that it's intended for these to use the vw
unit and respond to viewport width.
I'll move this issue over to the carbon-website repo since it's technically a bug on there that needs to be fixed. Thanks for pointing this out!
Thank you
Any update here? Is there any issue in the carbon-website to follow up on?
The text needs to be updated to say something like
These headings are responsive and the type styles change based on the viewport width
Any update here? Thanks in advance!
I just create an small PR about it: https://github.com/carbon-design-system/carbon-website/pull/4043
Package
@carbon/type
Browser
Chrome
Package version
11.23.0
React version
No response
Description
The fluid headings change size with the window size and not between breakpoints. Carbon Docs explicitly say that:
Reproduction/example
https://carbon-elements.netlify.app/type/examples/preview/
Steps to reproduce
Suggested Severity
Severity 3 = User can complete task, and/or has a workaround within the user experience of a given component.
Application/PAL
IBM Quantum Learning
Code of Conduct