|
9 | 9 | * @prop --calcite-panel-border-color: Specifies the component's border color.
|
10 | 10 | * @prop --calcite-panel-background-color: Specifies the component's background color.
|
11 | 11 | * @prop --calcite-panel-header-background-color: Specifies the background color of the component's header.
|
| 12 | + * @prop --calcite-panel-header-action-background-color: Specifies the background color of Panel's `closable`, `collapsible`, and elements slotted in `header-menu-actions`. |
| 13 | + * @prop --calcite-panel-header-action-background-color-hover: Specifies the background color of Panel's `closable`, `collapsible`, and elements slotted in `header-menu-actions` when hovered. |
| 14 | + * @prop --calcite-panel-header-action-background-color-press: Specifies the background color of Panel's `closable`, `collapsible`, and elements slotted in `header-menu-actions` when pressed. |
| 15 | + * @prop --calcite-panel-header-action-text-color: Specifies the text color of Panel's `closable`, `collapsible`, and elements slotted in `header-menu-actions`. |
| 16 | + * @prop --calcite-panel-header-action-text-color-press: Specifies the text color of Panel's `closable`, `collapsible`, and elements slotted in `header-menu-actions` when pressed. |
12 | 17 | * @prop --calcite-panel-footer-background-color: Specifies the background color of the component's footer.
|
13 | 18 | * @prop --calcite-panel-space: Specifies the padding of the component's `"unnamed (default)"` slot.
|
14 | 19 | * @prop --calcite-panel-header-content-space: Specifies the padding of the `"header-content"` slot.
|
15 | 20 | * @prop --calcite-panel-footer-space: Specifies the padding of the component's footer.
|
16 |
| - * @prop --calcite-action-background-color: Specifies the background color of the component's `closable`, `collapsible`, and `back` `calcite-action`s. Applies to any slotted `calcite-action`s. |
17 |
| - * @prop --calcite-action-background-color-hover: Specifies the background color of the component's `closable`, `collapsible`, and `back` `calcite-action`s when hovered. Applies to any slotted `calcite-action`s. |
18 |
| - * @prop --calcite-action-background-color-pressed: Specifies the background color of the component's `closable`, `collapsible`, and `back` `calcite-action`s when pressed. Applies to any slotted `calcite-action`s. |
19 |
| - * @prop --calcite-action-text-color-hover: Specifies the text and icon color of the component's `closable`, `collapsible`, and `back` `calcite-action`s when hovered. Applies to any slotted `calcite-action`s. |
20 |
| - * @prop --calcite-action-text-color-pressed: Specifies the text and icon color of the component's `closable`, `collapsible`, and `back` `calcite-action`s when pressed. Applies to any slotted `calcite-action`s. |
21 | 21 | * @prop --calcite-popover-border-color: Specifies the border color of the component's internally rendered `calcite-popover`, which is rendered within a `calcite-action` menu when slotted `calcite-action`s are present in the `header-actions-end` slot. Applies to any slotted `calcite-popover`s.
|
22 | 22 | * @prop --calcite-panel-content-space: [Deprecated] Use `--calcite-panel-space` instead. Specifies the padding of the component's content.
|
23 | 23 | * @prop --calcite-panel-footer-padding: [Deprecated] Use `--calcite-panel-footer-space` instead. Specifies the padding of the component's footer.
|
24 | 24 | * @prop --calcite-panel-header-border-block-end: [Deprecated] Use `--calcite-panel-border-color` instead. Specifies the component header's block end border.
|
25 |
| - * @prop --calcite-panel-header-action-background-color-hover: Specifies the background color of the component's `calcite-action` items in the panel header when hovered. |
26 |
| - * @prop --calcite-panel-header-action-background-color-press: Specifies the background color of the component's `calcite-action` items in the panel header when pressed. |
27 |
| - * @prop --calcite-panel-header-action-background-color: Specifies the background color of the component's `calcite-action` items in the panel header. |
28 |
| - * @prop --calcite-panel-header-action-indicator-color: Specifies the color of the component's `calcite-action` items' indicator in the panel header. |
29 |
| - * @prop --calcite-panel-header-action-text-color-press: Specifies the text color of the component's `calcite-action` items in the panel header when pressed. |
30 |
| - * @prop --calcite-panel-header-action-text-color: Specifies the text color of the component's `calcite-action` items in the panel header. |
31 | 25 | */
|
32 | 26 |
|
33 | 27 | :host {
|
34 | 28 | @apply relative flex w-full h-full flex-auto overflow-hidden box-border;
|
35 | 29 |
|
36 | 30 | --calcite-min-header-height: calc(var(--calcite-icon-size) * 3);
|
| 31 | + border-radius: var(--calcite-panel-corner-radius, var(--calcite-corner-radius-sharp)); |
37 | 32 | }
|
38 | 33 |
|
39 | 34 | @include disabled();
|
|
98 | 93 | transition:
|
99 | 94 | max-block-size var(--calcite-animation-timing),
|
100 | 95 | inline-size var(--calcite-animation-timing);
|
101 |
| - border-radius: var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none)); |
102 | 96 | box-sizing: border-box;
|
103 | 97 | font-size: var(--calcite-font-size--1);
|
104 | 98 | }
|
|
113 | 107 |
|
114 | 108 | .header {
|
115 | 109 | @apply flex flex-col z-header;
|
116 |
| - border-radius: var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none)) |
117 |
| - var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none)) 0 0; |
| 110 | + |
118 | 111 | background-color: var(--calcite-panel-header-background-color, var(--calcite-color-foreground-1));
|
119 | 112 | border-block-end: 1px solid
|
120 | 113 | var(--calcite-panel-border-color, var(--calcite-panel-header-border-block-end, var(--calcite-color-border-3)));
|
|
149 | 142 | margin-inline-end: auto;
|
150 | 143 | justify-content: center;
|
151 | 144 |
|
152 |
| - .header-actions { |
153 |
| - --calcite-action-background-color-hover: var(--calcite-panel-header-action-background-color-hover); |
154 |
| - --calcite-action-background-color-press: var(--calcite-panel-header-action-background-color-press); |
155 |
| - --calcite-action-background-color: var(--calcite-panel-header-action-background-color); |
156 |
| - --calcite-action-indicator-color: var(--calcite-panel-header-action-indicator-color); |
157 |
| - --calcite-action-text-color-press: var(--calcite-panel-header-action-text-color-press); |
158 |
| - --calcite-action-text-color: var(--calcite-panel-header-action-text-color); |
159 |
| - } |
160 |
| - |
161 | 145 | .heading,
|
162 | 146 | .description {
|
163 | 147 | @apply block
|
|
181 | 165 | }
|
182 | 166 | }
|
183 | 167 |
|
| 168 | +#close, |
| 169 | +#collapse, |
| 170 | +.back-button, |
| 171 | +calcite-action-menu { |
| 172 | + --calcite-action-background-color: var(--calcite-panel-header-action-background-color); |
| 173 | + --calcite-action-background-color-hover: var(--calcite-panel-header-action-background-color-hover); |
| 174 | + --calcite-action-background-color-press: var(--calcite-panel-header-action-background-color-press); |
| 175 | + --calcite-action-text-color: var(--calcite-panel-header-action-text-color); |
| 176 | + --calcite-action-text-color-pressed: var(--calcite-panel-header-action-text-color-pressed); |
| 177 | +} |
| 178 | + |
184 | 179 | .back-button {
|
185 | 180 | @apply border-0
|
186 | 181 | border-solid;
|
|
199 | 194 | margin-inline-start: theme("margin.auto");
|
200 | 195 | }
|
201 | 196 |
|
202 |
| -#close, |
203 |
| -#collapse, |
204 |
| -.back-button, |
205 |
| -calcite-action-menu { |
206 |
| -} |
207 |
| - |
208 |
| -#close, |
209 |
| -#collapse, |
210 |
| -calcite-action-menu { |
211 |
| - &:last-child { |
212 |
| - --calcite-action-corner-radius-start-end: var(--calcite-panel-corner-radius); |
213 |
| - } |
214 |
| -} |
215 |
| - |
216 |
| -.back-button { |
217 |
| - --calcite-action-corner-radius-start-start: var(--calcite-panel-corner-radius); |
218 |
| -} |
219 |
| - |
220 | 197 | .content-wrapper {
|
221 | 198 | @apply flex
|
222 | 199 | flex-auto
|
@@ -257,8 +234,6 @@ calcite-action-menu {
|
257 | 234 | var(--calcite-panel-footer-padding, var(--calcite-internal-panel-default-space))
|
258 | 235 | );
|
259 | 236 | background-color: var(--calcite-panel-footer-background-color, var(--calcite-color-foreground-1));
|
260 |
| - border-radius: 0 0 var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none)) |
261 |
| - var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none)); |
262 | 237 | }
|
263 | 238 |
|
264 | 239 | .footer-content {
|
|
0 commit comments