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

feat(leadspace): added ::part pseudo-element to component #4752

Merged
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const { stablePrefix: ddsPrefix } = ddsSettings;
* The LeadSpace component.
*
* @element dds-leadspace
* @csspart leadspace The first DOM node inside the shadow-root
guilhermelMoraes marked this conversation as resolved.
Show resolved Hide resolved
*/
@customElement(`${ddsPrefix}-leadspace`)
class DDSLeadSpace extends StableSelectorMixin(LitElement) {
Expand Down Expand Up @@ -136,7 +137,7 @@ class DDSLeadSpace extends StableSelectorMixin(LitElement) {
render() {
const { gradientStyleScheme, type } = this;
return html`
<section style="${this._getBackgroundImage()}" class="${this._getTypeClass()}">
<section style="${this._getBackgroundImage()}" class="${this._getTypeClass()}" part="leadspace">
guilhermelMoraes marked this conversation as resolved.
Show resolved Hide resolved
<div class="${prefix}--leadspace__container">
<div class="${this._getGradientClass()}">
${gradientStyleScheme === LEADSPACE_GRADIENT_STYLE_SCHEME.NONE
Expand Down