Skip to content

Button: Suppress __next40pxDefaultSize warning if the variant is link#71689

Closed
shrivastavanolo wants to merge 2 commits into
WordPress:trunkfrom
shrivastavanolo:fix/lint-warning-for-button-link-variant
Closed

Button: Suppress __next40pxDefaultSize warning if the variant is link#71689
shrivastavanolo wants to merge 2 commits into
WordPress:trunkfrom
shrivastavanolo:fix/lint-warning-for-button-link-variant

Conversation

@shrivastavanolo
Copy link
Copy Markdown
Contributor

What?

Closes #71683

Suppresses the __next40pxDefaultSize ESLint warning when the Button
variant is link.

Why?

Link variant Buttons don’t use a fixed height. The __next40pxDefaultSize
prop and related class are not meaningful for this case, so they should
not trigger warnings or extra styles.

How?

  • Updated ESLint rule to ignore Buttons with variant="link".

@github-actions
Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: shrivastavanolo <shreya0shrivastava@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@t-hamano t-hamano added [Type] Code Quality Issues or PRs that relate to code quality [Package] Components /packages/components labels Sep 16, 2025
@shrivastavanolo
Copy link
Copy Markdown
Contributor Author

Converting the PR to draft till unit tests are fixed. Will reopen shortly.

@shrivastavanolo shrivastavanolo marked this pull request as draft September 16, 2025 08:05
@shrivastavanolo shrivastavanolo force-pushed the fix/lint-warning-for-button-link-variant branch from a92b869 to 9b7f183 Compare September 16, 2025 11:41
@shrivastavanolo shrivastavanolo marked this pull request as ready for review September 16, 2025 12:13
@shrivastavanolo
Copy link
Copy Markdown
Contributor Author

This PR is ready for review now! Also, please let me know if a changelog entry is required for this (imo this was a minor change hence I did not add it)

@mirka
Copy link
Copy Markdown
Member

mirka commented Jan 15, 2026

Closing in favor of #74622.

@mirka mirka closed this Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Components /packages/components [Type] Code Quality Issues or PRs that relate to code quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Button: Suppress __next40pxDefaultSize warning if the variant is link

3 participants