Skip to content

Commit

Permalink
fix(OnyxIconButton): display inline by default (#1152)
Browse files Browse the repository at this point in the history
Display the icon button inline by default to align with the
`OnyxButton`.
This simplifies the layout then an icon button is placed next to text.
  • Loading branch information
larsrickert authored May 23, 2024
1 parent 1eab968 commit 2e93902
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .changeset/mighty-kiwis-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"sit-onyx": patch
---

fix(OnyxIconButton): display inline by default

Display the icon button inline by default to align with the `OnyxButton`.
This simplifies the layout then an icon button is placed next to text.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const emit = defineEmits<{
--icon-button-bg-color: transparent;
--icon-button-cursor: pointer;
display: grid;
display: inline-grid;
place-items: center;
padding: var(--onyx-icon-button-padding);
color: var(--icon-button-color);
Expand Down

0 comments on commit 2e93902

Please sign in to comment.