Skip to content
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
3 changes: 2 additions & 1 deletion packages/uui-button/lib/uui-button.element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export type UUIButtonType = 'submit' | 'button' | 'reset';
* @cssprop --uui-button-contrast-disabled - overwrite the text color for disabled state
* @cssprop --uui-button-content-align - Overwrite justify-content alignment. Possible values: 'left', 'right', 'center'.
* @cssprop --uui-button-transition - Add transition to the button. Default is none.
* @cssprop --uui-focus-outline-color - overwrite the focus outline color
*/
@defineElement('uui-button')
export class UUIButtonElement extends UUIFormControlMixin(
Expand Down Expand Up @@ -358,7 +359,7 @@ export class UUIButtonElement extends UUIFormControlMixin(
}

#button:focus-visible {
outline: 2px solid var(--color-emphasis);
outline: 2px solid var(--uui-focus-outline-color, var(--color-emphasis));
}

button[disabled]:active,
Expand Down
1 change: 1 addition & 0 deletions packages/uui-button/lib/uui-button.story.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const meta: Meta = {
options: ['left', 'center', 'right'],
},
'--uui-button-transition': { control: { type: 'text' } },
'--uui-focus-outline-color': { control: { type: 'color' } },
},
render: args => {
return html`<uui-button ${spread(args)}>${renderSlots(args)}</uui-button>`;
Expand Down
Loading