Skip to content

Commit 0ead8b1

Browse files
authored
Customize property style (#16)
* property style * bump version
1 parent 58b3876 commit 0ead8b1

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
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-type-document",
33
"description": "A documentation table for type (resource) properties. Works with AMF data model",
4-
"version": "4.2.6",
4+
"version": "4.2.7",
55
"license": "Apache-2.0",
66
"main": "index.js",
77
"module": "index.js",

src/ShapeStyles.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ export default css`
2424
}
2525
2626
.property-title {
27+
font-family: var(
28+
--property-shape-document-title-font-family,
29+
var(--arc-font-subhead-font-family)
30+
);
2731
font-size: var(
2832
--property-shape-document-title-font-size,
2933
var(--arc-font-subhead-font-size, 1rem)
@@ -37,7 +41,11 @@ export default css`
3741
var(--arc-font-subhead-line-height)
3842
);
3943
40-
margin: 4px 0 4px 0;
44+
margin: var(
45+
--property-shape-document-title-margin,
46+
4px 0 4px 0
47+
);
48+
font-size: 1rem;
4149
font-weight: var(--api-type-document-property-title-font-weight, 500);
4250
word-break: break-word;
4351
color: var(--api-type-document-property-title-color);
@@ -99,6 +107,7 @@ export default css`
99107
}
100108
101109
.property-traits {
110+
font-family: var(--api-type-document-trait-font-family);
102111
display: -ms-flexbox;
103112
display: flex;
104113
flex-direction: row;

src/TypeStyles.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ export default css`
99
}
1010
1111
property-shape-document {
12-
padding: 12px 0;
12+
padding: var(
13+
--property-shape-document-padding,
14+
12px 0
15+
);
1316
}
1417
1518
property-shape-document:last-of-type,

0 commit comments

Comments
 (0)