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

fix: Update uui-box.element.ts to support border color changeability #780

Merged
merged 1 commit into from
Apr 11, 2024
Merged
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
5 changes: 2 additions & 3 deletions packages/uui-box/lib/uui-box.element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function slotHasContent(target: EventTarget | null): boolean {
* @cssprop --uui-box-border-width - overwrite the box border, default is 0
* @cssprop --uui-box-box-shadow - overwrite the box shadow, default is var(--uui-shadow-depth-1)
* @cssprop --uui-box-border-radius - overwrite the box border-radius, default is var(--uui-border-radius)
*
* @cssprop --uui-box-border-color - overwrites the box border colorm default is var(--uui-color-divider-standalone)
*/
@defineElement('uui-box')
export class UUIBoxElement extends LitElement {
Expand Down Expand Up @@ -123,8 +123,7 @@ export class UUIBoxElement extends LitElement {
:host {
display: block;
border: var(--uui-box-border-width, 0) solid
var(--uui-color-divider-standalone);

var(--uui-box-border-color, var(--uui-color-divider-standalone));
box-shadow: var(--uui-box-box-shadow, var(--uui-shadow-depth-1));
border-radius: var(--uui-box-border-radius, var(--uui-border-radius));
background-color: var(--uui-color-surface);
Expand Down
Loading