Skip to content
Snippets Groups Projects
Unverified Commit f5d6697a authored by Ryan Laurie's avatar Ryan Laurie Committed by GitHub
Browse files

Use stretch variant on switch (#36503)

parent bbdbf09b
Branches
Tags
No related merge requests found
import styled from "@emotion/styled";
import { Switch } from "metabase/ui";
export const FilterSwitch = styled(Switch)`
.emotion-Switch-body {
justify-content: space-between;
}
`;
import type { SearchFilterToggle } from "metabase/search/types";
import { Text } from "metabase/ui";
import { FilterSwitch } from "./ToggleSidebarFilter.styled";
import { Text, Switch } from "metabase/ui";
export type ToggleSidebarFilterProps = {
filter: SearchFilterToggle;
......@@ -16,10 +15,11 @@ export const ToggleSidebarFilter = ({
"data-testid": dataTestId,
}: ToggleSidebarFilterProps) => {
return (
<FilterSwitch
<Switch
wrapperProps={{
"data-testid": dataTestId,
}}
variant="stretch"
data-testid="toggle-filter-switch"
size="sm"
labelPosition="left"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment