File tree Expand file tree Collapse file tree 3 files changed +15
-7
lines changed
polaris-react/src/components/AlphaFilters Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @shopify/polaris ' : patch
3+ ---
4+
5+ Tweaked the vertical alignment of elements within the ` AlphaFilters ` component
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ import {Text} from '../Text';
1010import { UnstyledButton } from '../UnstyledButton' ;
1111import { classNames } from '../../utilities/css' ;
1212import type { AppliedFilterInterface , FilterInterface } from '../../types' ;
13- import { Link } from '../Link' ;
1413import { HorizontalStack } from '../HorizontalStack' ;
1514import { Box } from '../Box' ;
1615import { Spinner } from '../Spinner' ;
16+ import { Button } from '../Button' ;
1717
1818import { FilterPill , SearchField } from './components' ;
1919import styles from './AlphaFilters.scss' ;
@@ -329,11 +329,14 @@ export function AlphaFilters({
329329 styles . MultiplePinnedFilterClearAll ,
330330 ) }
331331 >
332- < Link onClick = { handleClearAllFilters } removeUnderline >
333- < Text variant = "bodySm" fontWeight = "semibold" as = "span" >
334- { i18n . translate ( 'Polaris.Filters.clearFilters' ) }
335- </ Text >
336- </ Link >
332+ < Button
333+ size = "micro"
334+ plain
335+ onClick = { handleClearAllFilters }
336+ removeUnderline
337+ >
338+ { i18n . translate ( 'Polaris.Filters.clearFilters' ) }
339+ </ Button >
337340 </ div >
338341 ) : null ;
339342
Original file line number Diff line number Diff line change 7373 }
7474
7575 .Label {
76- display : block ;
76+ display : flex ;
7777 padding-left : var (--p-space-05 );
7878 }
7979}
You can’t perform that action at this time.
0 commit comments