add --padding to tab panel

pull/555/head
Cory LaViska 2021-10-04 09:29:14 -04:00
rodzic ebd84642e1
commit e12ee97bd9
5 zmienionych plików z 22 dodań i 5 usunięć

Wyświetl plik

@ -229,10 +229,6 @@ strong {
margin-bottom: 0;
}
.markdown-section sl-tab-panel::part(base) {
padding: var(--sl-spacing-medium) 0;
}
.docsify-pagination-container {
border-top-color: rgb(var(--sl-color-neutral-200)) !important;
}

Wyświetl plik

@ -16,6 +16,7 @@ _During the beta period, these restrictions may be relaxed in the event of a mis
- 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 `--padding` custom property to `<sl-tab-panel>`
- 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
- Added the `control` part to `<sl-select>` so you can target the main control with CSS [#538](https://github.com/shoelace-style/shoelace/issues/538)

Wyświetl plik

@ -93,6 +93,10 @@ export default css`
order: 2;
}
.tab-group--top ::slotted(sl-tab-panel) {
--padding: var(--sl-spacing-medium) 0;
}
/*
* Bottom
*/
@ -135,6 +139,10 @@ export default css`
order: 1;
}
.tab-group--bottom ::slotted(sl-tab-panel) {
--padding: var(--sl-spacing-medium) 0;
}
/*
* Start
*/
@ -163,6 +171,10 @@ export default css`
order: 2;
}
.tab-group--start ::slotted(sl-tab-panel) {
--padding: 0 var(--sl-spacing-medium);
}
/*
* End
*/
@ -190,4 +202,8 @@ export default css`
flex: 1 1 auto;
order: 1;
}
.tab-group--end ::slotted(sl-tab-panel) {
--padding: 0 var(--sl-spacing-medium);
}
`;

Wyświetl plik

@ -5,11 +5,13 @@ export default css`
${componentStyles}
:host {
--padding: 0;
display: block;
}
.tab-panel {
border: solid 1px transparent;
padding: 20px 20px;
padding: var(--padding);
}
`;

Wyświetl plik

@ -11,6 +11,8 @@ let id = 0;
* @slot - The tab panel's content.
*
* @csspart base - The component's base wrapper.
*
* @cssproperty --padding - The tab panel's padding.
*/
@customElement('sl-tab-panel')
export default class SlTabPanel extends LitElement {