Skip to content

Commit 4a94c6c

Browse files
committed
Add ThemableMixin documentation to Styling docs.
1 parent 7d5346c commit 4a94c6c

File tree

2 files changed

+75
-9
lines changed

2 files changed

+75
-9
lines changed

analysis.json

+73-9
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88
"sourceRange": {
99
"file": "src/vaadin-button.html",
1010
"start": {
11-
"line": 107,
11+
"line": 109,
1212
"column": 6
1313
},
1414
"end": {
15-
"line": 107,
15+
"line": 109,
1616
"column": 42
1717
}
1818
},
1919
"elements": [
2020
{
21-
"description": "`<vaadin-button>` is a Polymer 2 element providing an accessible and customizable button.\n\n```html\n<vaadin-button>\n</vaadin-button>\n```\n\n### Styling\n\nThe following shadow DOM parts are exposed for styling:\n\nPart name | Description\n----------------|----------------\n`button` | The internal `<button>` element\n\nThe following attributes are exposed for styling:\n\nAttribute | Description\n--------- | -----------\n`active` | Set when the button is pressed down, either with mouse, touch or the keyboard.\n`disabled` | Set when the button is disabled.\n`focus-ring` | Set when the button is focused using the keyboard.\n`focused` | Set when the button is focused.",
21+
"description": "`<vaadin-button>` is a Polymer 2 element providing an accessible and customizable button.\n\n```html\n<vaadin-button>\n</vaadin-button>\n```\n\n### Styling\n\nThe following shadow DOM parts are exposed for styling:\n\nPart name | Description\n----------------|----------------\n`button` | The internal `<button>` element\n\nThe following attributes are exposed for styling:\n\nAttribute | Description\n--------- | -----------\n`active` | Set when the button is pressed down, either with mouse, touch or the keyboard.\n`disabled` | Set when the button is disabled.\n`focus-ring` | Set when the button is focused using the keyboard.\n`focused` | Set when the button is focused.\n\nSee [ThemableMixin – how to apply styles for shadow parts](https://github.com/vaadin/vaadin-themable-mixin/wiki)",
2222
"summary": "",
2323
"path": "src/vaadin-button.html",
2424
"properties": [
@@ -142,11 +142,11 @@
142142
"privacy": "protected",
143143
"sourceRange": {
144144
"start": {
145-
"line": 77,
145+
"line": 79,
146146
"column": 8
147147
},
148148
"end": {
149-
"line": 88,
149+
"line": 90,
150150
"column": 9
151151
}
152152
},
@@ -427,11 +427,11 @@
427427
"privacy": "protected",
428428
"sourceRange": {
429429
"start": {
430-
"line": 90,
430+
"line": 92,
431431
"column": 8
432432
},
433433
"end": {
434-
"line": 95,
434+
"line": 97,
435435
"column": 9
436436
}
437437
},
@@ -473,11 +473,11 @@
473473
"metadata": {},
474474
"sourceRange": {
475475
"start": {
476-
"line": 68,
476+
"line": 70,
477477
"column": 6
478478
},
479479
"end": {
480-
"line": 100,
480+
"line": 102,
481481
"column": 7
482482
}
483483
},
@@ -553,5 +553,69 @@
553553
}
554554
]
555555
}
556+
],
557+
"elements": [
558+
{
559+
"description": "",
560+
"summary": "",
561+
"path": "demo/button-basic-demos.html",
562+
"properties": [],
563+
"methods": [],
564+
"staticMethods": [],
565+
"demos": [],
566+
"metadata": {},
567+
"sourceRange": {
568+
"start": {
569+
"line": 55,
570+
"column": 4
571+
},
572+
"end": {
573+
"line": 59,
574+
"column": 5
575+
}
576+
},
577+
"privacy": "public",
578+
"superclass": "HTMLElement",
579+
"name": "ButtonBasicDemos",
580+
"attributes": [],
581+
"events": [],
582+
"styling": {
583+
"cssVariables": [],
584+
"selectors": []
585+
},
586+
"slots": [],
587+
"tagname": "button-basic-demos"
588+
}
589+
],
590+
"mixins": [
591+
{
592+
"description": " ",
593+
"summary": "",
594+
"path": "demo/button-demo.html",
595+
"properties": [],
596+
"methods": [],
597+
"staticMethods": [],
598+
"demos": [],
599+
"metadata": {},
600+
"sourceRange": {
601+
"start": {
602+
"line": 2,
603+
"column": 2
604+
},
605+
"end": {
606+
"line": 9,
607+
"column": 3
608+
}
609+
},
610+
"privacy": "public",
611+
"name": "ButtonDemo",
612+
"attributes": [],
613+
"events": [],
614+
"styling": {
615+
"cssVariables": [],
616+
"selectors": []
617+
},
618+
"slots": []
619+
}
556620
]
557621
}

src/vaadin-button.html

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@
6060
* `focus-ring` | Set when the button is focused using the keyboard.
6161
* `focused` | Set when the button is focused.
6262
*
63+
* See [ThemableMixin – how to apply styles for shadow parts](https://github.com/vaadin/vaadin-themable-mixin/wiki)
64+
*
6365
* @memberof Vaadin
6466
* @mixes Vaadin.ControlStateMixin
6567
* @mixes Vaadin.ThemableMixin

0 commit comments

Comments
 (0)