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
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ parameters:
# 3. Commit this change to the PR branch where the changes exist.
current_golden_images_hash:
type: string
default: fb61509de41ae6a2cd09fbcf661e20b9f270450b
default: 1bd7e9973de8f318233aa41b5b8a97a2956cd44d
wireit_cache_name:
type: string
default: wireit
Expand Down
23 changes: 8 additions & 15 deletions packages/card/src/card.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ slot[name="description"] {
height: 100%;
}

:host([variant="quiet"][size="s"]) #preview ::slotted(*) {
border-radius: calc(var(--spectrum-card-corner-radius) - var(--spectrum-focus-indicator-thickness));
}

:host([horizontal]) #preview {
width: auto;
}
Expand Down Expand Up @@ -97,23 +101,12 @@ sp-popover {
pointer-events: none;
}

:host([variant='quiet']:focus) #preview:after {
border: var(
--mod-card-focus-indicator-width,
var(--spectrum-card-focus-indicator-width)
)
solid
var(
--mod-card-focus-indicator-color,
var(--spectrum-card-focus-indicator-color)
);
:host([variant="quiet"]:focus) #preview:after {
border: var(--mod-card-focus-indicator-width, var(--spectrum-card-focus-indicator-width)) solid var(--mod-card-focus-indicator-color, var(--spectrum-card-focus-indicator-color));
}

:host([variant='quiet'][selected]:focus) #preview {
border-width: var(
--mod-card-focus-indicator-width,
var(--spectrum-card-focus-indicator-width)
);
:host([variant="quiet"][selected]:focus) #preview {
border-width: var(--mod-card-focus-indicator-width, var(--spectrum-card-focus-indicator-width));
}

/* This ensures that the checkbox is tabbable when the card toggles but is not itself focusable */
Expand Down
Loading