Skip to content

Commit

Permalink
Make clear select button match design spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mollykreis committed May 17, 2024
1 parent 0669540 commit 84fb096
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/nimble-components/src/select/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
borderRgbPartialColor,
borderWidth,
controlHeight,
controlSlimHeight,
fillHoverColor,
fillHoverSelectedColor,
fillSelectedColor,
Expand Down Expand Up @@ -39,8 +40,7 @@ export const styles = css`
.clear-button {
order: 3;
width: auto;
height: auto;
height: ${controlSlimHeight};
margin-left: ${smallPadding};
}
Expand Down
4 changes: 2 additions & 2 deletions packages/nimble-components/src/select/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
} from '../label-provider/core/label-tokens';
import { FilterMode } from './types';
import { buttonTag } from '../button';
import { iconXmarkTag } from '../icons/xmark';
import { iconTimesTag } from '../icons/times';

/* eslint-disable @typescript-eslint/indent */
// prettier-ignore
Expand Down Expand Up @@ -74,7 +74,7 @@ SelectOptions
content-hidden
appearance="ghost"
@click="${(x, c) => x.clearClickHandler(c.event as MouseEvent)}">
<${iconXmarkTag} slot="start"></${iconXmarkTag}>
<${iconTimesTag} slot="start"></${iconTimesTag}>
</${buttonTag}>
`)}
<div aria-hidden="true" class="indicator" part="indicator">
Expand Down

0 comments on commit 84fb096

Please sign in to comment.