-
-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve header styles when table has scroll in table component (#…
…1414) * fix: improve header styles when table has scroll in table component * fix: hasScroll control changed from state to method Co-authored-by: Tahimi <[email protected]>
- Loading branch information
1 parent
010819b
commit 3dc5889
Showing
5 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import styled from 'styled-components'; | ||
import attachThemeAttrs from '../../../../styles/helpers/attachThemeAttrs'; | ||
|
||
const StyledScrollShadow = attachThemeAttrs(styled.div)` | ||
width: inherit; | ||
height: 1px; | ||
position: absolute; | ||
top: 42px; | ||
${props => | ||
props.hasScroll && | ||
` | ||
box-shadow: 0 1.5px 2.5px 0 ${props.palette.text.header}; | ||
`} | ||
`; | ||
|
||
export default StyledScrollShadow; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters