Skip to content

Commit

Permalink
fix: modal and button component uncertain styles (#33)
Browse files Browse the repository at this point in the history
* fix: flex height modal child unable to pick it's height

* fix: button overflow it's parent
  • Loading branch information
ajbura authored Mar 25, 2024
1 parent d966bd3 commit 62417b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/button/Button.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export const Button = recipe({
base: [
DefaultReset,
{
minWidth: 0,
maxWidth: "100%",
display: "inline-flex",
alignItems: "center",
justifyContent: "center",
Expand Down
2 changes: 2 additions & 0 deletions src/components/modal/Modal.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export const Modal = recipe({
boxShadow: config.shadow.E300,
width: "100%",
height: "100%",
display: "flex",
flexDirection: "column",
overflow: "hidden",
animation: `${ModalOpenAnime} 200ms`,
},
Expand Down

0 comments on commit 62417b9

Please sign in to comment.