Skip to content

Commit 2447d11

Browse files
committed
only inherit color when having a look
1 parent 30f6b5f commit 2447d11

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/uui-button/lib/uui-button.element.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ export class UUIButtonElement extends LabelMixin('', LitElement) {
162162
163163
#loader {
164164
font-size: 1.5em;
165+
}
166+
:host([look]:not([look=''])) #loader {
165167
color: inherit;
166168
}
167169

packages/uui-button/lib/uui-button.story.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export default {
1818
look: '',
1919
type: '',
2020
label: 'Button',
21+
state: '',
2122
},
2223
argTypes: {
2324
look: {
@@ -270,11 +271,8 @@ WithIcon.parameters = {
270271
},
271272
};
272273

273-
export const WaitingState = () => html`
274-
<uui-button state="waiting" label="A11Y proper label">
275-
Loading button
276-
</uui-button>
277-
`;
274+
export const WaitingState = Template.bind({});
275+
WaitingState.args = { state: 'waiting' };
278276
WaitingState.parameters = {
279277
docs: {
280278
source: {

0 commit comments

Comments
 (0)