Skip to content

Commit

Permalink
fix: [CSS] change button behaviour from flex to inline-flex.
Browse files Browse the repository at this point in the history
Regular button in HTML use inline-block, with inline-flex the similar behaviour is guaranteed
  • Loading branch information
StfBauer committed Nov 8, 2023
1 parent 2d6c247 commit 79355db
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions htwoo-core/src/_patterns/organism/dialogs/generic-dialog.hbs
Expand Up @@ -5,8 +5,8 @@
{{> atoms-button-primary }}
{{/modal-dialog}}

<button id="btn-dialog">Show Dialog (position: absolute)</button>
<button id="btn-modal-dialog">Show Modal Dialog (position: fixed)</button>
<button>Hello world</button><button>Hello world</button>

<dialog id="myDialog" class="hoo-dlg msg">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Omnis non officia vel aliquid impedit, nam at minima, fugit
necessitatibus ab perferendis illum corrupti ratione ea nihil, doloremque consectetur corporis dolorem?
Expand Down
2 changes: 1 addition & 1 deletion htwoo-core/src/css/htwoo.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion htwoo-core/src/css/style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion htwoo-core/src/css/style.prod.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion htwoo-core/src/styles/01-atoms/buttons/_buttons.scss
Expand Up @@ -2,7 +2,7 @@
@use "../../00-base/mixin/core.mixin";

.hoo-button {
display: flex;
display: inline-flex;
justify-content: center;

padding: 0 1rem;
Expand Down

0 comments on commit 79355db

Please sign in to comment.