Skip to content

Commit

Permalink
chore: add new token for Modal component
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorrusakov committed Nov 28, 2022
1 parent 6c5444c commit 3451733
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions scss/core/tokens.css
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
--pgn-nav-link-font-weight: 500;
--pgn-nav-link-padding-x: 1rem;
--pgn-nav-link-padding-y: .5rem;
--pgn-modal-close-container-top: .625rem;
--pgn-modal-zindex: 1050;
--pgn-modal-transform-scale: scale(1.02);
--pgn-modal-transform-show: none;
Expand Down
2 changes: 1 addition & 1 deletion src/Modal/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ $modal-header-border-width: var(--pgn-modal-header-border-width) !default;
$modal-footer-border-width: var(--pgn-modal-footer-border-width) !default;
$modal-header-padding-y: var(--pgn-modal-header-padding-y) !default;
$modal-header-padding-x: var(--pgn-modal-header-padding-x) !default;
$modal-close-container-top: .625rem !default;
$modal-close-container-top: var(--pgn-modal-close-container-top) !default;


// Keep this for backwards compatibility
Expand Down
1 change: 1 addition & 0 deletions tokens/build/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ $pgn-nav-tabs-border-width: 2px !default;
$pgn-nav-link-font-weight: 500 !default;
$pgn-nav-link-padding-x: 1rem !default;
$pgn-nav-link-padding-y: .5rem !default;
$pgn-modal-close-container-top: .625rem !default;
$pgn-modal-zindex: 1050 !default;
$pgn-modal-transform-scale: scale(1.02) !default;
$pgn-modal-transform-show: none !default;
Expand Down
2 changes: 1 addition & 1 deletion tokens/build/css-to-scss.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tokens/build/scss-to-css.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions tokens/build/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
--pgn-nav-link-font-weight: 500;
--pgn-nav-link-padding-x: 1rem;
--pgn-nav-link-padding-y: .5rem;
--pgn-modal-close-container-top: .625rem;
--pgn-modal-zindex: 1050;
--pgn-modal-transform-scale: scale(1.02);
--pgn-modal-transform-show: none;
Expand Down
5 changes: 4 additions & 1 deletion tokens/source/components/Modal.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@
"show": { "value": "none", "source": "$modal-show-transform" },
"scale": { "value": "scale(1.02)", "source": "$modal-scale-transform" }
},
"zindex": { "value": "1050", "source": "$zindex-modal" }
"zindex": { "value": "1050", "source": "$zindex-modal" },
"close-container": {
"top": { "value": ".625rem", "source": "$modal-close-container-top" }
}
}
}

0 comments on commit 3451733

Please sign in to comment.