Skip to content

Commit 1643286

Browse files
committed
refactor: align the styles with other components
1 parent baa64e9 commit 1643286

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

src/ApiBodyDocumentElement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ export class ApiBodyDocumentElement extends AmfHelperMixin(LitElement) {
580580
title="Toogle body details"
581581
?opened="${opened}"
582582
>
583-
<div class="table-title" role="heading" aria-level="${headerLevel}">Body</div>
583+
<div class="heading3" role="heading" aria-level="${headerLevel}">Body</div>
584584
<div class="title-area-actions">
585585
<anypoint-button
586586
class="toggle-button"

src/Styles.js

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,16 @@ export default css`
1616
display: flex;
1717
flex-direction: row;
1818
align-items: center;
19+
border-bottom: 1px var(--api-parameters-document-title-border-color, var(--api-parameters-document-title-border-color, #e5e5e5)) solid;
1920
cursor: pointer;
20-
-webkit-user-select: none;
21-
-moz-user-select: none;
22-
-ms-user-select: none;
2321
user-select: none;
24-
border-bottom: 1px var(--api-body-document-title-border-color, #e5e5e5) solid;
2522
transition: border-bottom-color 0.15s ease-in-out;
2623
}
2724
2825
.section-title-area[opened] {
2926
border-bottom-color: transparent;
3027
}
3128
32-
.section-title-area .table-title {
33-
flex: 1;
34-
flex-basis: 0.000000001px;
35-
font-size: var(--api-body-document-title-narrow-font-size, initial);
36-
}
37-
3829
.toggle-button {
3930
outline: none;
4031
}
@@ -49,14 +40,15 @@ export default css`
4940
transform: rotateZ(-180deg);
5041
}
5142
52-
.table-title {
43+
.heading3 {
44+
flex: 1;
5345
font-size: var(--arc-font-subhead-font-size);
5446
font-weight: var(--arc-font-subhead-font-weight);
5547
line-height: var(--arc-font-subhead-line-height);
5648
}
5749
58-
:host([narrow]) .table-title {
59-
font-size: var(--api-body-document-title-narrow-font-size, initial);
50+
:host([narrow]) .heading3 {
51+
font-size: var(--api-body-document-title-narrow-font-size, var(--arc-font-subhead-narrow-font-size, 17px));
6052
}
6153
6254
.type-title {
@@ -125,4 +117,4 @@ arc-marked {
125117
height: 24px;
126118
fill: currentColor;
127119
}
128-
`;
120+
`;

0 commit comments

Comments
 (0)