Skip to content

Commit 0bf8f62

Browse files
gurpreetsainisalesforceGitHub Enterprise
authored andcommitted
feat: add css to color swtach buttons (forcedotcom#32)
1 parent 7476cf9 commit 0bf8f62

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

force-app/main/default/lwc/productDetails/productDetails.scoped.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,36 @@ ul:not(.browser-default) li {
9797
border-color: var(--dxp-g-brand-3, #333333);
9898
}
9999

100+
.variant-button.color-button {
101+
width: 30px;
102+
height: 30px;
103+
border-radius: 50%;
104+
border: none;
105+
background-size: cover;
106+
background-position: center;
107+
background-repeat: no-repeat;
108+
margin: 0 8px 8px 0;
109+
display: inline-block;
110+
cursor: pointer;
111+
transition: border-color 0.2s, box-shadow 0.2s;
112+
outline: none;
113+
padding: 0;
114+
}
115+
116+
.variant-button.color-button.selected {
117+
border: none;
118+
box-shadow: 0 0 0 2px #fff, 0 0 0 3px #111;
119+
}
120+
121+
.variant-button.color-button:hover:not(.selected):not(:disabled) {
122+
border: none;
123+
box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--dxp-g-neutral-3, #666);
124+
}
125+
126+
.variant-message {
127+
font-size: small;
128+
}
129+
100130
.disabled {
101131
cursor: not-allowed;
102132
}

0 commit comments

Comments
 (0)