Skip to content

Commit 870bde7

Browse files
authored
Customize body document style heading (#21)
* style heading * bump package version
1 parent 79954c4 commit 870bde7

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

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.4.0",
4+
"version": "4.4.1",
55
"license": "Apache-2.0",
66
"main": "index.js",
77
"module": "index.js",

src/Styles.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export default css`
1717
flex-direction: row;
1818
align-items: center;
1919
border-bottom: 1px var(--api-body-document-title-border-color, var(--api-parameters-document-title-border-color, #e5e5e5)) solid;
20+
border: var(--api-body-document-title-border);
2021
cursor: pointer;
2122
user-select: none;
2223
transition: border-bottom-color 0.15s ease-in-out;
@@ -42,10 +43,11 @@ export default css`
4243
4344
.heading3 {
4445
flex: 1;
45-
color: var(--arc-font-subhead-color);
46-
font-size: var(--arc-font-subhead-font-size);
47-
font-weight: var(--arc-font-subhead-font-weight);
48-
line-height: var(--arc-font-subhead-line-height);
46+
font-family: var(--api-body-document-h3-font-family, var(--arc-font-subhead-font-family));
47+
color: var(--api-body-document-h3-font-color, var(--arc-font-subhead-color));
48+
font-size: var(--api-body-document-h3-font-size, var(--arc-font-subhead-font-size));
49+
font-weight: var(--api-body-document-h3-font-weight, var(--arc-font-subhead-font-weight));
50+
line-height: var(--api-body-document-h3-line-height, var(--arc-font-subhead-line-height));
4951
}
5052
5153
:host([narrow]) .heading3 {

0 commit comments

Comments
 (0)