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

[Bug]: Ghost Icon button not center aligned #18420

Closed
2 tasks done
geertklop opened this issue Jan 24, 2025 · 0 comments · Fixed by #18503
Closed
2 tasks done

[Bug]: Ghost Icon button not center aligned #18420

geertklop opened this issue Jan 24, 2025 · 0 comments · Fixed by #18503
Assignees

Comments

@geertklop
Copy link

geertklop commented Jan 24, 2025

Package

@carbon/web-components

Browser

Chrome

Package version

2.21.0

React version

NA

Description

If I choose the combination with a Ghost button and Icon only, I do experience that the icon alignment is not centered anymore. This seems to be introduced somewhere between version 2.16 and version 2.21, as on the older version the same combination did not give an issue.

Example (at version 2.21)

Image

While the documentation shows it with a centered icon:

Image

Reproduction/example

https://web-components.carbondesignsystem.com/?path=/story/components-button--icon-button&args=kind:ghost;isSelected:!true

Steps to reproduce

The storybook with these attributes set will also show the misalignment:

Image

Suggested Severity

None

Application/PAL

No response

Code of Conduct

@guidari guidari moved this to ⏱ Backlog in Design System Jan 28, 2025
@riddhybansal riddhybansal self-assigned this Jan 28, 2025
@riddhybansal riddhybansal moved this from ⏱ Backlog to 🏗 In Progress in Design System Feb 3, 2025
@riddhybansal riddhybansal moved this from 🏗 In Progress to 🚦 In Review in Design System Feb 3, 2025
@guidari guidari moved this from 🚦 In Review to ✅ Done in Design System Feb 12, 2025
@guidari guidari closed this as completed by moving to ✅ Done in Design System Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

3 participants