Skip to content

Commit e4f32f1

Browse files
committed
Fixed styling
1 parent 40ca77c commit e4f32f1

File tree

3 files changed

+21
-23
lines changed

3 files changed

+21
-23
lines changed

react-spaces/src/components/stories/02-components/Custom.stories.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ intend to change the type of the space dynamically without causing remounting of
146146
<Prop name="width" type="number | string" description="Width of space." />
147147
<Prop name="height" type="number | string" description="Height of space." />
148148
<PropsHeader>Relevant as anchored</PropsHeader>
149-
<Prop name="anchor" type="anchor-left, anchor-top, anchor-right, anchor-bottom" description="Anchor the space to the parents edge" />
149+
<Prop name="anchor" type="AnchorType.Left, AnchorType.Top, AnchorType.Right, AnchorType.Bottom, 'anchor-left', 'anchor-top', 'anchor-right', 'anchor-bottom'" description="Anchor the space to the parents edge" />
150150
<Prop name="anchorSize" type="number | string" description="Size of space when anchored." />
151151
<PropsHeader>Relevant as resizable</PropsHeader>
152152
<Prop name="resizable" type="boolean" default="false" description="Makes the space resizable." />
Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
1-
.sbdocs-wrapper {
2-
.properties-table,
3-
.css-lckf62 {
4-
margin-top: 15px;
5-
border-collapse: collapse;
6-
border-spacing: 0;
7-
width: 100%;
8-
font-size: 14px;
9-
line-height: 24px;
10-
td,
11-
th {
12-
vertical-align: top;
13-
text-align: left;
14-
padding: 6px 13px;
15-
border: 1px solid rgba(0, 0, 0, 0.1);
16-
}
1+
.properties-table,
2+
.css-lckf62 {
3+
margin-top: 15px;
4+
border-collapse: collapse;
5+
border-spacing: 0;
6+
width: 100%;
7+
font-size: 14px;
8+
line-height: 24px;
9+
td,
10+
th {
11+
vertical-align: top;
12+
text-align: left;
13+
padding: 6px 13px;
14+
border: 1px solid rgba(0, 0, 0, 0.1);
15+
}
1716

18-
tr:nth-of-type(2n) {
19-
background-color: #f8f8f8;
20-
}
17+
tr:nth-of-type(2n) {
18+
background-color: #f8f8f8;
2119
}
2220
}

react-spaces/src/components/stories/Utils.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ export const DemoUI = () => {
188188
);
189189
};
190190

191-
export const blue: CSSProperties = { backgroundColor: "#e0eeee", opacity: 0.7 };
192-
export const red: CSSProperties = { backgroundColor: "#eee0e0", opacity: 0.7 };
193-
export const green: CSSProperties = { backgroundColor: "#e0eee0", opacity: 0.7 };
191+
export const blue: CSSProperties = { backgroundColor: "rgb(224, 238, 238, 0.7)" };
192+
export const red: CSSProperties = { backgroundColor: "rgb(238, 224, 224, 0.7)" };
193+
export const green: CSSProperties = { backgroundColor: "rgb(224, 238, 224, 0.7)" };
194194

195195
export const description = (props: string, additional?: React.ReactNode) => (
196196
<Info>

0 commit comments

Comments
 (0)