Skip to content

Commit

Permalink
add panel border width token
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed Sep 27, 2021
1 parent 15ce341 commit 47aff56
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion docs/resources/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ _During the beta period, these restrictions may be relaxed in the event of a mis

## Next

- Added initial surface design tokens to improve the appearance of alert, card, and panels in dark mode
- Added `--sl-surface-base` and `--sl-surface-base-alt` as early surface tokens to improve the appearance of alert, card, and panels in dark mode
- Added the `--sl-panel-border-width` design token
- Added missing background color to `<sl-details>`
- Added the `outline` variation to `<sl-button>` [#522](https://github.com/shoelace-style/shoelace/issues/522)
- Added the `filled` variation to `<sl-input>`, `<sl-textarea>`, and `<sl-select>` and supporting design tokens
Expand Down
4 changes: 2 additions & 2 deletions src/components/alert/alert.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export default css`
display: flex;
align-items: stretch;
background-color: rgb(var(--sl-surface-base-alt));
border: solid 1px rgb(var(--sl-color-neutral-200));
border-top-width: 3px;
border: solid var(--sl-panel-border-width) rgb(var(--sl-panel-border-color));
border-top-width: calc(var(--sl-panel-border-width) * 3);
border-radius: var(--sl-border-radius-medium);
box-shadow: var(--box-shadow);
font-family: var(--sl-font-sans);
Expand Down
2 changes: 1 addition & 1 deletion src/components/color-picker/color-picker.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default css`
}
.color-picker--inline {
border: solid 1px rgb(var(--sl-panel-border-color));
border: solid var(--sl-panel-border-width) rgb(var(--sl-panel-border-color));
}
.color-picker__grid {
Expand Down
2 changes: 1 addition & 1 deletion src/components/dropdown/dropdown.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default css`
font-weight: var(--sl-font-weight-normal);
color: var(--color);
background-color: rgb(var(--sl-panel-background-color));
border: solid 1px rgb(var(--sl-panel-border-color));
border: solid var(--sl-panel-border-width) rgb(var(--sl-panel-border-color));
border-radius: var(--sl-border-radius-medium);
box-shadow: var(--sl-shadow-large);
overflow: auto;
Expand Down
2 changes: 1 addition & 1 deletion src/components/menu-divider/menu-divider.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default css`
}
.menu-divider {
border-top: solid 1px rgb(var(--sl-panel-border-color));
border-top: solid var(--sl-panel-border-width) rgb(var(--sl-panel-border-color));
margin: var(--sl-spacing-x-small) 0;
}
`;
2 changes: 1 addition & 1 deletion src/components/radio-group/radio-group.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default css`
}
.radio-group {
border: solid 1px rgb(var(--sl-panel-border-color));
border: solid var(--sl-panel-border-width) rgb(var(--sl-panel-border-color));
border-radius: var(--sl-border-radius-medium);
padding: var(--sl-spacing-large);
padding-top: var(--sl-spacing-x-small);
Expand Down
1 change: 1 addition & 0 deletions src/themes/dark.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ export default css`
--sl-panel-background-color: var(--sl-surface-base-alt);
--sl-panel-border-color: var(--sl-color-neutral-200);
--sl-panel-border-width: 1px;
/*
* Tooltips
Expand Down
1 change: 1 addition & 0 deletions src/themes/light.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ export default css`
--sl-panel-background-color: var(--sl-surface-base-alt);
--sl-panel-border-color: var(--sl-color-neutral-200);
--sl-panel-border-width: 1px;
/*
* Tooltips
Expand Down

0 comments on commit 47aff56

Please sign in to comment.