mirror of
https://github.com/apache/superset.git
synced 2026-04-21 17:14:57 +00:00
chore: Migrate .less styles to Emotion (#22474)
This commit is contained in:
committed by
GitHub
parent
5026da50e1
commit
39c96d0568
@@ -89,12 +89,25 @@ const collapseStyles = (theme: SupersetTheme) => css`
|
||||
.ant-collapse-arrow {
|
||||
top: ${theme.gridUnit * 2}px !important;
|
||||
color: ${theme.colors.primary.dark1} !important;
|
||||
&: hover {
|
||||
&:hover {
|
||||
color: ${theme.colors.primary.dark2} !important;
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
const LeftBarStyles = styled.div`
|
||||
${({ theme }) => css`
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.divider {
|
||||
border-bottom: 1px solid ${theme.colors.grayscale.light4};
|
||||
margin: ${theme.gridUnit * 4}px 0;
|
||||
}
|
||||
`}
|
||||
`;
|
||||
|
||||
const SqlEditorLeftBar = ({
|
||||
database,
|
||||
queryEditorId,
|
||||
@@ -228,7 +241,7 @@ const SqlEditorLeftBar = ({
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<div data-test="sql-editor-left-bar" className="SqlEditorLeftBar">
|
||||
<LeftBarStyles data-test="sql-editor-left-bar">
|
||||
<TableSelectorMultiple
|
||||
onEmptyResults={onEmptyResults}
|
||||
emptyState={emptyStateComponent(emptyResultsWithSearch)}
|
||||
@@ -276,7 +289,7 @@ const SqlEditorLeftBar = ({
|
||||
<i className="fa fa-bomb" /> {t('Reset state')}
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
</LeftBarStyles>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user