web component add rtl selector
This commit is contained in:
parent
ee22348c5b
commit
802f2083fa
@ -1,4 +1,4 @@
|
||||
import styled from "styled-components";
|
||||
import styled, { css } from "styled-components";
|
||||
|
||||
import Base from "../../../themes/base";
|
||||
|
||||
@ -18,6 +18,13 @@ const StyledHeader = styled.div`
|
||||
.arrow-button {
|
||||
cursor: pointer;
|
||||
margin-right: 12px;
|
||||
${(props) =>
|
||||
props.theme.interfaceDirection === "rtl" &&
|
||||
css`
|
||||
margin-left: 12px;
|
||||
margin-right: 0px;
|
||||
transform: scaleX(-1);
|
||||
`}
|
||||
}
|
||||
|
||||
.heading-text {
|
||||
|
@ -37,6 +37,12 @@ const StyledItem = styled.div<{
|
||||
line-height: 18px;
|
||||
|
||||
margin-left: 8px;
|
||||
${(props) =>
|
||||
props.theme.interfaceDirection === "rtl" &&
|
||||
css`
|
||||
margin-left: 0;
|
||||
margin-right: 8px;
|
||||
`}
|
||||
}
|
||||
|
||||
.checkbox {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import styled from "styled-components";
|
||||
import styled, { css } from "styled-components";
|
||||
import { Base } from "../../../themes";
|
||||
|
||||
const StyledSelectAll = styled.div`
|
||||
@ -31,6 +31,12 @@ const StyledSelectAll = styled.div`
|
||||
line-height: 16px;
|
||||
|
||||
margin-left: 8px;
|
||||
${(props) =>
|
||||
props.theme.interfaceDirection === "rtl" &&
|
||||
css`
|
||||
margin-left: 0;
|
||||
margin-right: 8px;
|
||||
`}
|
||||
}
|
||||
|
||||
.checkbox {
|
||||
|
Loading…
Reference in New Issue
Block a user