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

Disable clamp for font-size #49080

Closed
PH4NTOMiki opened this issue Mar 14, 2023 · 2 comments
Closed

Disable clamp for font-size #49080

PH4NTOMiki opened this issue Mar 14, 2023 · 2 comments
Labels
Needs Design Feedback Needs general design feedback. [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Enhancement A suggestion for improvement.

Comments

@PH4NTOMiki
Copy link

Description

As far I can tell it's impossible to disable using clamp in font-size,

Am I wrong?
And I'm sorry for posting here, but I do think this is an issue because people should be supposed to turn it of it hey don't want it.

Also I bit of a side-note: It would be great to be able to set different settings for different viewports without needing to use Custom CSS

Step-by-step reproduction instructions

font size setting in Gutenberg editor

Screenshots, screen recording, code snippet

No response

Environment info

WP 6.2 RC1
Edge, Chrome
Win, Linux

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@richtabor
Copy link
Member

richtabor commented Mar 14, 2023

You can disable fluid typography at the settings.typography.fluid, like this:

"typography": {
	"fluid": false
}

Or at the font size preset level in settings.typography.fontSizes:

"fontSizes": [
  {
    "fluid": false,
    "name": "Large",
    "size": "1.3rem",
    "slug": "large"
  }
]

It's not currently possible to disable fluid typography if the theme has enabled it (default is false)—currently at least.

@Thelmachido Thelmachido added [Type] Enhancement A suggestion for improvement. Needs Design Feedback Needs general design feedback. labels Mar 15, 2023
@Thelmachido
Copy link

As far I can tell it's impossible to disable using clamp in font-size,

Hi @PH4NTOMiki there is an open issue investigating opting out of the clamp option for blocks, you can follow and contribute to the discussion #45502

In the meantime, you can use the CSS option advice above.

It would be great to be able to set different settings for different viewports without needing to use Custom CSS

There are a few discussions about breaking points and having a more intrusive design for themes, I would suggest making a comment there to further this initiative. #27107

I will mark this as a duplicate, please feel free to re-open this with a note if you need to.

@Thelmachido Thelmachido added the [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed label Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Design Feedback Needs general design feedback. [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants