Skip to content

Commit 30f6b5f

Browse files
committed
added default color to uui-loader
1 parent b778e43 commit 30f6b5f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export class UUILoaderElement extends LitElement {
1111
css`
1212
:host {
1313
/* currently this components color is defined through currentColor, if we like to use a different color, we need to implemenet a --uui-interface- color which will be set/overwritten when looks are set, aka. if this element is used within a button with the look danger, then this component would get an appropriate color. */
14+
color: var(--uui-color-primary);
1415
}
1516
1617
div {

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ export default {
1818
};
1919

2020
export const Overview: Story = props =>
21-
html`<uui-loader style="color: ${props.color}"></uui-loader>`;
22-
Overview.args = { color: 'black' };
21+
html`<uui-loader
22+
style=${props.color ? 'color: ' + props.color : ''}></uui-loader>`;
23+
Overview.args = { color: '' };
2324
Overview.argTypes = {
2425
color: { table: { category: 'inline styling' } },
2526
};

0 commit comments

Comments
 (0)