Skip to content

Commit 0306a8b

Browse files
author
mkrause
committed
Fix indents.
1 parent 88c6f2f commit 0306a8b

File tree

2 files changed

+52
-61
lines changed

2 files changed

+52
-61
lines changed

src/components/containers/Banner/Banner.stories.tsx

Lines changed: 18 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default {
5555
layout: 'padded',
5656
},
5757
decorators: [
58-
Story => <LayoutDecorator size="large" resize="inline"><Story/></LayoutDecorator>,
58+
Story => <LayoutDecorator size="large" /*resize="inline"*/><Story/></LayoutDecorator>,
5959
],
6060
tags: ['autodocs'],
6161
args: {},
@@ -67,6 +67,12 @@ const ExampleActionButton = () =>
6767
<Banner.ActionButton onPress={() => alert('clicked')}>Button</Banner.ActionButton>;
6868
const ExampleActionIcon = () =>
6969
<Banner.ActionIcon label="Copy" onPress={() => alert('clicked')}><Icon icon="copy"/></Banner.ActionIcon>;
70+
const ExampleActions = () => (
71+
<>
72+
<ExampleActionButton/>
73+
<ExampleActionIcon/>
74+
</>
75+
);
7076

7177

7278
export const BannerStandard: Story = {
@@ -112,12 +118,7 @@ export const BannerWithMultipleActions: Story = {
112118
args: {
113119
children: 'A banner with two actions.',
114120
onClose: () => {},
115-
actions: (
116-
<>
117-
<ExampleActionButton/>
118-
<ExampleActionIcon/>
119-
</>
120-
),
121+
actions: <ExampleActions/>,
121122
},
122123
};
123124

@@ -142,29 +143,19 @@ export const BannerWithTextWrap: Story = {
142143
args: {
143144
children: <LoremIpsum/>,
144145
onClose: () => {},
145-
actions: (
146-
<>
147-
<ExampleActionButton/>
148-
<ExampleActionIcon/>
149-
</>
150-
),
151-
},
152-
};
146+
actions: <ExampleActions/>,
147+
},
148+
};
153149

154-
export const BannerWithTitleOverflowAndTextWrap: Story = {
155-
...storyDescription(dedent`
150+
export const BannerWithTitleOverflowAndTextWrap: Story = {
151+
...storyDescription(dedent`
156152
This shows both the title truncation and message wrap at the same time.
157153
`),
158154
args: {
159155
title: loremIpsum(),
160156
children: <LoremIpsum/>,
161157
onClose: () => {},
162-
actions: (
163-
<>
164-
<ExampleActionButton/>
165-
<ExampleActionIcon/>
166-
</>
167-
),
158+
actions: <ExampleActions/>,
168159
},
169160
};
170161

@@ -199,7 +190,7 @@ export const BannerInformational: Story = {
199190
title: loremIpsum(),
200191
children: <LoremIpsum/>,
201192
onClose: () => {},
202-
actions: <ExampleActionButton/>,
193+
actions: <ExampleActions/>,
203194
},
204195
};
205196

@@ -210,7 +201,7 @@ export const BannerSuccess: Story = {
210201
title: loremIpsum(),
211202
children: <LoremIpsum/>,
212203
onClose: () => {},
213-
actions: <ExampleActionButton/>,
204+
actions: <ExampleActions/>,
214205
},
215206
};
216207

@@ -221,7 +212,7 @@ export const BannerWarning: Story = {
221212
title: loremIpsum(),
222213
children: <LoremIpsum/>,
223214
onClose: () => {},
224-
actions: <ExampleActionButton/>,
215+
actions: <ExampleActions/>,
225216
},
226217
};
227218

@@ -232,7 +223,7 @@ export const BannerError: Story = {
232223
title: loremIpsum(),
233224
children: <LoremIpsum/>,
234225
onClose: () => {},
235-
actions: <ExampleActionButton/>,
226+
actions: <ExampleActions/>,
236227
},
237228
};
238229

src/styling/lib/reset.css

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,115 +1,115 @@
11
/* stylelint-disable */
22
/***
3-
The new CSS reset - version 1.11.3 (last updated 25.08.2024)
4-
GitHub page: https://github.com/elad2412/the-new-css-reset
3+
The new CSS reset - version 1.11.3 (last updated 25.08.2024)
4+
GitHub page: https://github.com/elad2412/the-new-css-reset
55
***/
66

77
/*
8-
Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property
9-
- The "symbol *" part is to solve Firefox SVG sprite bug
10-
- The "html" element is excluded, otherwise a bug in Chrome breaks the CSS hyphens property (https://github.com/elad2412/the-new-css-reset/issues/36)
8+
Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property
9+
- The "symbol *" part is to solve Firefox SVG sprite bug
10+
- The "html" element is excluded, otherwise a bug in Chrome breaks the CSS hyphens property (https://github.com/elad2412/the-new-css-reset/issues/36)
1111
*/
1212
*:where(:not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)) {
13-
all: unset;
14-
display: revert;
13+
all: unset;
14+
display: revert;
1515
}
1616

1717
/* Preferred box-sizing value */
1818
*,
1919
*::before,
2020
*::after {
21-
box-sizing: border-box;
21+
box-sizing: border-box;
2222
}
2323

2424
/* Fix mobile Safari increase font-size on landscape mode */
2525
html {
26-
-moz-text-size-adjust: none;
27-
-webkit-text-size-adjust: none;
28-
text-size-adjust: none;
26+
-moz-text-size-adjust: none;
27+
-webkit-text-size-adjust: none;
28+
text-size-adjust: none;
2929
}
3030

3131
/* Reapply the pointer cursor for anchor tags */
3232
a, button {
33-
cursor: revert;
33+
cursor: revert;
3434
}
3535

3636
/* Remove list styles (bullets/numbers) */
3737
ol, ul, menu, summary {
38-
list-style: none;
38+
list-style: none;
3939
}
4040

4141
/* Firefox: solve issue where nested ordered lists continue numbering from parent (https://bugzilla.mozilla.org/show_bug.cgi?id=1881517) */
4242
ol {
43-
counter-reset: revert;
43+
counter-reset: revert;
4444
}
4545

4646
/* For images to not be able to exceed their container */
4747
img {
48-
max-inline-size: 100%;
49-
max-block-size: 100%;
48+
max-inline-size: 100%;
49+
max-block-size: 100%;
5050
}
5151

5252
/* removes spacing between cells in tables */
5353
table {
54-
border-collapse: collapse;
54+
border-collapse: collapse;
5555
}
5656

5757
/* Safari - solving issue when using user-select:none on the <body> text input doesn't working */
5858
input, textarea {
59-
-webkit-user-select: auto;
59+
-webkit-user-select: auto;
6060
}
6161

6262
/* revert the 'white-space' property for textarea elements on Safari */
6363
textarea {
64-
white-space: revert;
64+
white-space: revert;
6565
}
6666

6767
/* minimum style to allow to style meter element */
6868
meter {
69-
-webkit-appearance: revert;
70-
appearance: revert;
69+
-webkit-appearance: revert;
70+
appearance: revert;
7171
}
7272

7373
/* preformatted text - use only for this feature */
7474
:where(pre) {
75-
all: revert;
76-
box-sizing: border-box;
75+
all: revert;
76+
box-sizing: border-box;
7777
}
7878

7979
/* reset default text opacity of input placeholder */
8080
::placeholder {
81-
color: unset;
81+
color: unset;
8282
}
8383

8484
/* fix the feature of 'hidden' attribute.
8585
display:revert; revert to element instead of attribute */
8686
:where([hidden]) {
87-
display: none;
87+
display: none;
8888
}
8989

9090
/* revert for bug in Chromium browsers
9191
- fix for the content editable attribute will work properly.
9292
- webkit-user-select: auto; added for Safari in case of using user-select:none on wrapper element*/
9393
:where([contenteditable]:not([contenteditable="false"])) {
94-
-moz-user-modify: read-write;
95-
-webkit-user-modify: read-write;
96-
overflow-wrap: break-word;
97-
-webkit-line-break: after-white-space;
98-
-webkit-user-select: auto;
94+
-moz-user-modify: read-write;
95+
-webkit-user-modify: read-write;
96+
overflow-wrap: break-word;
97+
-webkit-line-break: after-white-space;
98+
-webkit-user-select: auto;
9999
}
100100

101101
/* apply back the draggable feature - exist only in Chromium and Safari */
102102
:where([draggable="true"]) {
103-
-webkit-user-drag: element;
103+
-webkit-user-drag: element;
104104
}
105105

106106
/* Revert Modal native behavior */
107107
:where(dialog:modal) {
108-
all: revert;
109-
box-sizing: border-box;
108+
all: revert;
109+
box-sizing: border-box;
110110
}
111111

112112
/* Remove details summary webkit styles */
113113
::-webkit-details-marker {
114-
display: none;
114+
display: none;
115115
}

0 commit comments

Comments
 (0)