1
0
Fork 0
mirror of synced 2024-09-19 18:59:06 +12:00

Update action button style for component settings to match designs

This commit is contained in:
Andrew Kingston 2022-06-08 16:51:14 +01:00
parent 56c8a0fcf9
commit e806001107
2 changed files with 5 additions and 1 deletions

View file

@ -83,4 +83,7 @@
:global([dir="ltr"] .spectrum-ActionButton .spectrum-Icon) { :global([dir="ltr"] .spectrum-ActionButton .spectrum-Icon) {
margin-left: 0; margin-left: 0;
} }
.is-selected {
background: var(--spectrum-global-color-gray-300);
}
</style> </style>

View file

@ -10,8 +10,9 @@
{#each options as option} {#each options as option}
<ActionButton <ActionButton
icon={option.barIcon} icon={option.barIcon}
quiet={option.value !== value} quiet
on:click={() => onChange(option.value)} on:click={() => onChange(option.value)}
selected={option.value === value}
/> />
{/each} {/each}
</ActionGroup> </ActionGroup>