Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose cssparts for styling #262

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/[email protected]/dist/tokens/CSSCustomProperties.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/[email protected]/dist/bundled/essentials.css" />
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/[email protected].3/dist/auro-dropdown__bundled.js" type="module"></script>
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/[email protected].4/dist/auro-dropdown__bundled.js" type="module"></script>
```

<!-- AURO-GENERATED-CONTENT:END -->
Expand Down
8 changes: 8 additions & 0 deletions demo/api.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -2590,6 +2590,14 @@ class AuroDropdown extends r {
super.disconnectedCallback();
}

/**
* @private
* @returns {void} Exposes CSS parts for styling from parent components.
*/
exposeCssParts() {
this.setAttribute('exportparts', 'trigger:dropdownTrigger, chevron:dropdownChevron, helpText:dropdownHelpText, popover:dropdownPopover');
}

/**
* @private
* @returns {void} Makes dropdown content width match the trigger.
Expand Down
8 changes: 8 additions & 0 deletions demo/index.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -2572,6 +2572,14 @@ class AuroDropdown extends r {
super.disconnectedCallback();
}

/**
* @private
* @returns {void} Exposes CSS parts for styling from parent components.
*/
exposeCssParts() {
this.setAttribute('exportparts', 'trigger:dropdownTrigger, chevron:dropdownChevron, helpText:dropdownHelpText, popover:dropdownPopover');
}

/**
* @private
* @returns {void} Makes dropdown content width match the trigger.
Expand Down
8 changes: 8 additions & 0 deletions src/auro-dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,14 @@ export class AuroDropdown extends LitElement {
super.disconnectedCallback();
}

/**
* @private
* @returns {void} Exposes CSS parts for styling from parent components.
*/
exposeCssParts() {
this.setAttribute('exportparts', 'trigger:dropdownTrigger, chevron:dropdownChevron, helpText:dropdownHelpText, popover:dropdownPopover');
}

/**
* @private
* @returns {void} Makes dropdown content width match the trigger.
Expand Down