Skip to content

Commit b8ce7ad

Browse files
authored
Style tab button (#14)
* style active action button * bump version
1 parent 41f4217 commit b8ce7ad

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
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-resource-example-document",
33
"description": "A viewer for examples in a resource based on AMF model",
4-
"version": "4.3.1",
4+
"version": "4.3.2",
55
"license": "Apache-2.0",
66
"main": "index.js",
77
"module": "index.js",

src/styles/Render.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,15 @@ export default css`
3131
.action-button[active] {
3232
background-color: var(--api-resource-example-document-button-active-background-color, #CDDC39);
3333
color: var(--api-resource-example-document-button-active-color, currentColor);
34+
text-decoration: var(--api-resource-example-document-button-active-text-decoration);
35+
text-underline-offset: var(--api-resource-example-document-button-active-text-underline-offset);
3436
}
3537
3638
.union-toggle[focused],
3739
.action-button[active][focused] {
38-
outline: auto;
40+
outline: var(--api-resource-example-document-button-active-outline, auto);
41+
text-decoration: var(--api-resource-example-document-button-active-text-decoration);
42+
text-underline-offset: var(--api-resource-example-document-button-active-text-underline-offset);
3943
}
4044
4145
.union-type-selector {
@@ -58,6 +62,9 @@ export default css`
5862
anypoint-button {
5963
margin-bottom: 8px;
6064
height: 28px;
65+
color: var(--api-resource-example-document-button-color);
66+
font-size: var(--api-resource-example-document-button-font-size);
67+
font-weight: var(--api-resource-example-document-button-font-weight);
6168
}
6269
6370
api-example-render {

0 commit comments

Comments
 (0)