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

FontSize conflict between link and social-links blocks #67133

Open
3 of 6 tasks
CallMarl opened this issue Nov 19, 2024 · 0 comments · May be fixed by #67138
Open
3 of 6 tasks

FontSize conflict between link and social-links blocks #67133

CallMarl opened this issue Nov 19, 2024 · 0 comments · May be fixed by #67138
Labels
[Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@CallMarl
Copy link

Description

Customize the font size of link into global settings override the custome size defined into social-links block. Caused by the order of css call, the instruction below should include the native block class .wp-block-social-link-anchor:

a:where(:not(.wp-element-button)) {
    font-size: var(--wp--preset--font-size--small);
}

to:

a:where(:not(.wp-element-button, .wp-block-social-link-anchor)) {
    font-size: var(--wp--preset--font-size--small);
}

I tried into developper tool and this fix work.

Step-by-step reproduction instructions

Into theme.json set styles.elements.link.typography.fontSize with custom size like:

{
    "styles": {
        "elements": {
            "link": {
                "typography": {
                    "fontSize": "var(--wp--preset--font-size--small)"
                }
	    }
        }
    }
}

Then try to define into wordpress gutenberg editor custom size into the social links editor.

Screenshots, screen recording, code snippet

Image

Environment info

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure
@CallMarl CallMarl added the [Type] Bug An existing feature does not function as intended label Nov 19, 2024
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant