Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 749769e

Browse files
Merge pull request #811 from bitflower/master
feat(style) allow container to be access via part
2 parents bc8a98e + f908f6c commit 749769e

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

docs/docs/components/app-components-color/app-components-color.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,21 @@ It is fully configurable in terms of colors, you could define the set of colors
66

77
## Table of contents
88

9-
- [Showcase](#app-components-color-showcase)
10-
- [Installation](#app-components-color-installation) - [Using from a CDN](#app-components-color-from-a-cdn) - [Install from NPM](#app-components-color-from-npm) - [Framework integration](#app-components-color-framework-integration)
11-
- [Usage](#app-components-color-usage)
12-
- [Slots](#app-components-color-slots)
13-
- [Attributes](#app-components-color-attributes)
14-
- [Theming](#app-components-color-theming)
15-
- [Methods](#app-components-color-methods)
16-
- [Trying it out](#app-components-color-trying-it-out)
9+
- [Color Picker](#color-picker)
10+
- [Table of contents](#table-of-contents)
11+
- [Showcase](#showcase)
12+
- [Installation](#installation)
13+
- [Using from a CDN](#using-from-a-cdn)
14+
- [Install from NPM](#install-from-npm)
15+
- [Framework integration](#framework-integration)
16+
- [Import](#import)
17+
- [Loader](#loader)
18+
- [Usage](#usage)
19+
- [Slots](#slots)
20+
- [Attributes](#attributes)
21+
- [Palette](#palette)
22+
- [Theming](#theming)
23+
- [Events](#events)
1724

1825
## Showcase
1926

@@ -225,6 +232,10 @@ The following theming options will affect this component if set on its host or p
225232
| --deckgo-color-label-text-align | center | Text alignment of the color description |
226233
| --deckgo-color-label-color-font-weight | 300 | Font weight of the hexadecimal value of the color description |
227234

235+
| Shadow-DOM part | Note |
236+
| --------------- | ------------------------------------------------------ |
237+
| container | Allows to style the container the color buttons are in |
238+
228239
### Events
229240

230241
To listen to the selected color you have to subscribe to the following event:

webcomponents/color/src/components/color/deckdeckgo-color.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export class DeckdeckgoColor {
237237
render() {
238238
return (
239239
<Host>
240-
<div class="color-container">
240+
<div class="color-container" part="container">
241241
{this.renderPalette()}
242242
{this.renderMore()}
243243
</div>

0 commit comments

Comments
 (0)