Skip to content

Commit cf92f21

Browse files
committed
docs(backgroundlayers): style changes
1 parent 175be2e commit cf92f21

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

components/backgroundlayers/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ governing permissions and limitations under the License.
1616
--spectrum-backgroundlayers-shadow-horizontal: 0;
1717
--spectrum-backgroundlayers-shadow-vertical: 0;
1818
--spectrum-backgroundlayers-shadow-blur: 5px;
19-
--spectrum-backgroundlayers-shadow-color: var(--spectrum-gray-200);
19+
--spectrum-backgroundlayers-shadow-color: var(--spectrum-gray-600);
2020
.spectrum--dark & {
2121
--spectum-backgroundlayers-background-color: var(--spectrum-gray-75);
2222
--spectrum-backgroundlayers-shadow-color: var(--spectrum-gray-100);

components/backgroundlayers/stories/backgroundlayers.stories.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Template } from "./template";
22
import { html } from 'lit';
33

44
export default {
5-
title: "Elements/Background layers",
5+
title: "UtilitityClasses/Background layers",
66
description: "The background layers is a series of classes used to style background layers.",
77
component: "BackgroundLayers",
88
argTypes: {},
@@ -24,19 +24,19 @@ const EditingContext = ({
2424
return html`
2525
<div style="display: flex; justify-content: flex-start; position: relative; block-size: 150px;">
2626
${Template({
27-
style: "z-index: 4;",
27+
style: "z-index: 4; inset-inline-start: 10px; inset-block-start: 10px;",
2828
layer: 'elevated',
2929
})}
3030
${Template({
31-
style: "z-index: 3; inset-inline-start: 15px; inset-block-start: 15px;",
31+
style: "z-index: 3; inset-inline-start: 20px; inset-block-start: 20px;",
3232
layer: 'layer2',
3333
})}
3434
${Template({
35-
style: "z-index: 2; inset-inline-start: 25px; inset-block-start: 25px;",
35+
style: "z-index: 2; inset-inline-start: 30px; inset-block-start: 30px;",
3636
layer: 'layer1',
3737
})}
3838
${Template({
39-
style: "z-index: 1; inset-inline-start: 35px; inset-block-start: 35px;",
39+
style: "z-index: 1; inset-inline-start: 40px; inset-block-start: 40px;",
4040
layer: "pasteboard",
4141
})}
4242
</div>
@@ -48,15 +48,15 @@ const BrowsingContext = ({
4848
return html`
4949
<div style="display: flex; justify-content: flex-start; position: relative; block-size: 150px;">
5050
${Template({
51-
style: "z-index: 3;",
51+
style: "z-index: 3; inset-inline-start: 10px; inset-block-start: 10px;",
5252
layer: 'elevated',
5353
})}
5454
${Template({
55-
style: "z-index: 2; inset-inline-start: 15px; inset-block-start: 15px;",
55+
style: "z-index: 2; inset-inline-start: 20px; inset-block-start: 20px;",
5656
layer: 'layer1',
5757
})}
5858
${Template({
59-
style: "z-index: 1; inset-inline-start: 25px; inset-block-start: 25px;",
59+
style: "z-index: 1; inset-inline-start: 30px; inset-block-start: 30px;",
6060
layer: "base",
6161
})}
6262
</div>

components/backgroundlayers/stories/template.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const Template = ({
1616
[`${rootClass}--${layer}`]: true,
1717
...customClasses.reduce((a, c) => ({ ...a, [c]: true }), {}),
1818
})}
19-
style="${style} inline-size: 100px; block-size: 100px; border-radius: 10px; position: absolute;">
19+
style="${style} inline-size: 150px; block-size: 150px; border-radius: 10px; position: absolute;">
2020
</div>
2121
`;
2222
}

0 commit comments

Comments
 (0)