Skip to content

Commit ee07f6d

Browse files
Update example styles
1 parent b87cadd commit ee07f6d

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

demo/src/main.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,13 @@ footer {
134134
margin-top: 10px;
135135
}
136136
.code__button {
137-
font-weight: bold;
138137
cursor: pointer;
139138
display: inline-block;
140139
padding: 10px 0;
141140
color: var(--colorPageLinks);
142141
background-color: transparent;
143-
font: inherit;
142+
font: 16px/1.5 sans-serif;
143+
font-weight: bold;
144144
border: none;
145145
text-decoration: underline solid var(--colorGreenShadow);
146146
}

src/components/AccordionItemHeading.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ const Heading = React.forwardRef<HTMLHeadingElement, AccordianItemHeadingProps>(
3434
});
3535
},
3636
);
37-
3837
Heading.displayName = 'Heading';
3938

4039
export class AccordionItemHeading extends React.PureComponent<AccordianItemHeadingProps> {

src/css/fancy-example.css

+5-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
.accordion__item + .accordion__item {
1212
border-top: 1px solid rgba(0, 0, 0, 0.1);
1313
}
14-
14+
.accordion__heading {
15+
margin: 0;
16+
font: 16px/1.5 sans-serif;
17+
}
1518
.accordion__button {
1619
background-color: #f4f4f4;
1720
color: #444;
@@ -21,6 +24,7 @@
2124
text-align: left;
2225
border: none;
2326
font: inherit;
27+
margin: 0;
2428
}
2529

2630
.accordion__button:hover {

0 commit comments

Comments
 (0)