Skip to content

Commit

Permalink
Modal: Add default elevation (#681)
Browse files Browse the repository at this point in the history
* feat(modal): add elevation token

Adds elevation token level 5 to the modal component.

* chore: add changeset

* feat(modal-elevation): remove border and move elevation to modal__content class

---------

Co-authored-by: Markell Torres <markell.torres@ithaka.org>
  • Loading branch information
brentswisher and mtorres3 committed Feb 13, 2024
1 parent 551c5e9 commit 67684b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/calm-weeks-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ithaka/pharos': minor
---

Add elevation style to modal component
2 changes: 1 addition & 1 deletion packages/pharos/src/components/modal/pharos-modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@
overflow-y: scroll;
background-color: var(--pharos-modal-color-background-content);
background-clip: padding-box;
border: 1px solid var(--pharos-modal-color-border-content);
border-radius: var(--pharos-radius-base-standard);
outline: 0;
box-shadow: var(--pharos-elevation-level-5);
}

.modal__body {
Expand Down

0 comments on commit 67684b7

Please sign in to comment.