Skip to content

Commit 0d26079

Browse files
committed
Merge branch 'deiteris-stage' into develop
2 parents 747c844 + 5906575 commit 0d26079

File tree

5 files changed

+11
-18
lines changed

5 files changed

+11
-18
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@api-components/api-body-document",
33
"description": "A component to render HTTP method body documentation based on AMF model",
4-
"version": "4.3.0",
4+
"version": "4.3.1",
55
"license": "Apache-2.0",
66
"main": "index.js",
77
"module": "index.js",

src/ApiBodyDocumentElement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ export class ApiBodyDocumentElement extends AmfHelperMixin(LitElement) {
559559
title="Toggle body details"
560560
?data-opened="${opened}"
561561
>
562-
<div class="table-title" role="heading" aria-level="${headerLevel}">Body</div>
562+
<div class="heading3" role="heading" aria-level="${headerLevel}">Body</div>
563563
<div class="title-area-actions">
564564
<anypoint-button
565565
class="toggle-button"

src/Styles.js

Lines changed: 6 additions & 13 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-body-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[data-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,16 @@ export default css`
4940
transform: rotateZ(-180deg);
5041
}
5142
52-
.table-title {
43+
.heading3 {
44+
flex: 1;
45+
color: var(--arc-font-subhead-color);
5346
font-size: var(--arc-font-subhead-font-size);
5447
font-weight: var(--arc-font-subhead-font-weight);
5548
line-height: var(--arc-font-subhead-line-height);
5649
}
5750
58-
:host([narrow]) .table-title {
59-
font-size: var(--api-body-document-title-narrow-font-size, initial);
51+
:host([narrow]) .heading3 {
52+
font-size: var(--api-body-document-title-narrow-font-size, var(--arc-font-subhead-narrow-font-size, 17px));
6053
}
6154
6255
.type-title {

test/api-body-document.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ describe('ApiBodyDocumentElement', () => {
228228
});
229229

230230
it('Narrow style is applied to the URI title', () => {
231-
element.style.setProperty('--api-body-document-title-narrow-font-size', '16px');
232-
const title = element.shadowRoot.querySelector('.table-title');
231+
element.style.setProperty('--arc-font-subhead-narrow-font-size', '16px');
232+
const title = element.shadowRoot.querySelector('.heading3');
233233
const { fontSize } = getComputedStyle(title);
234234
assert.equal(fontSize, '16px');
235235
});

0 commit comments

Comments
 (0)