refactor: Existing Antd Collapse to enhanced (#12013)

* Move ProgressBar to Antd

* Remove trailing space

* Fix linting issues

* Export enhanced Progress only

* Move existing antd Collapse to enhanced Collapse

* Move enhanced props up to Collapse only

* Add stories for enhanced Collapse

* Add 100% height for overflow

* Improve text light story
This commit is contained in:
Geido
2020-12-14 08:57:08 +02:00
committed by GitHub
parent fee9bbe57b
commit 1afe91579e
7 changed files with 157 additions and 51 deletions

View File

@@ -84,25 +84,6 @@ const Styles = styled.div`
}
.ant-collapse {
height: 100%;
background-color: ${({ theme }) => theme.colors.grayscale.light5};
.ant-collapse-item {
height: 100%;
border: 0;
}
.ant-collapse-content,
.ant-collapse-content-box {
height: 100%;
}
.ant-collapse-header {
background-color: ${({ theme }) => theme.colors.grayscale.light5};
padding-top: 0;
padding-bottom: 0;
font-weight: ${({ theme }) => theme.typography.weights.bold};
& > .ant-collapse-arrow {
top: 5px; // not a theme variable, override necessary after setting paddings to 0 to center arrow
}
}
.ant-tabs {
height: 100%;
.ant-tabs-nav {