Skip to content

Commit 0f52511

Browse files
authored
Style active tab button (#24)
* style active action button * bump package version
1 parent 870bde7 commit 0f52511

File tree

3 files changed

+10
-2
lines changed

3 files changed

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

src/Styles.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,17 @@ export default css`
6666
}
6767
6868
anypoint-button[active] {
69+
color: var(--api-body-document-media-button-color);
6970
background-color: var(--api-body-document-media-button-background-color, #CDDC39);
71+
text-decoration: var(--api-body-document-media-button-text-decoration);
72+
text-underline-offset: var(--api-body-document-media-button-text-underline-offset);
7073
}
7174
7275
.media-type-selector {
7376
margin: 20px 0;
77+
color: var(--api-body-document-media-type-selector-color);
78+
font-size: var(--api-body-document-media-type-selector-font-size);
79+
font-weight: var(--api-body-document-media-type-selector-font-weight);
7480
}
7581
7682
.markdown-html {
@@ -98,6 +104,8 @@ api-schema-document {
98104
.media-toggle {
99105
outline: none;
100106
color: var(--api-body-document-toggle-view-color, var(--arc-toggle-view-icon-color, rgba(0, 0, 0, 0.74)));
107+
font-size: var(--api-body-document-toggle-view-font-size);
108+
font-weight: var(--api-body-document-toggle-view-font-weight);
101109
}
102110
103111
.any-info,

0 commit comments

Comments
 (0)