-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(content-explorer): migrate subheader to pageheader
- Loading branch information
1 parent
9135321
commit 8e2b4e3
Showing
26 changed files
with
168 additions
and
474 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,85 +1,5 @@ | ||
@import '../../styles/variables'; | ||
|
||
.bdl-GridViewSlider { | ||
display: flex; | ||
margin-right: 5px; | ||
} | ||
|
||
// mixins required since vendor prefixes cannot be mixed in a selector | ||
@mixin bdl-GridViewSlider-track { | ||
height: 2px; | ||
background: $bdl-gray-10; | ||
border: none; | ||
border-radius: 2px; | ||
} | ||
|
||
@mixin bdl-GridViewSlider-thumb { | ||
width: 10px; | ||
height: 10px; | ||
background: $bdl-gray-80; | ||
border: none; | ||
border-radius: 50%; | ||
} | ||
|
||
.bdl-GridViewSlider-range { | ||
margin-right: 7px; | ||
margin-left: 7px; | ||
|
||
/* fix for FF unable to apply focus style bug */ | ||
cursor: pointer; | ||
appearance: none; | ||
|
||
&::-webkit-slider-runnable-track { | ||
@include bdl-GridViewSlider-track; | ||
} | ||
|
||
&::-webkit-slider-thumb { | ||
@include bdl-GridViewSlider-thumb; | ||
|
||
width: 10px; | ||
margin-top: -4px; | ||
appearance: none; | ||
} | ||
|
||
&::-moz-range-track { | ||
@include bdl-GridViewSlider-track; | ||
} | ||
|
||
&::-moz-range-thumb { | ||
@include bdl-GridViewSlider-thumb; | ||
} | ||
|
||
&::-ms-track { | ||
@include bdl-GridViewSlider-track; | ||
|
||
color: transparent; | ||
} | ||
|
||
&::-ms-fill-lower { | ||
background: $bdl-gray-10; | ||
border-radius: 10px; | ||
} | ||
|
||
&::-ms-fill-upper { | ||
background: $bdl-gray-10; | ||
border-radius: 10px; | ||
} | ||
|
||
&::-ms-thumb { | ||
@include bdl-GridViewSlider-thumb; | ||
} | ||
|
||
&:focus::-ms-fill-lower { | ||
background: $bdl-gray-50; | ||
} | ||
|
||
&:focus::-ms-fill-upper { | ||
background: $bdl-gray-20; | ||
} | ||
} | ||
|
||
.bdl-GridViewSlider-button { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
width: 112px; | ||
} |
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
38 changes: 6 additions & 32 deletions
38
src/components/grid-view/__tests__/__snapshots__/GridViewSlider.test.js.snap
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 |
---|---|---|
@@ -1,42 +1,16 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`components/grid-view/GridViewSlider should render() 1`] = ` | ||
<div | ||
className="bdl-GridViewSlider" | ||
> | ||
<PlainButton | ||
aria-label="Decrease column size" | ||
className="bdl-GridViewSlider-button" | ||
onClick={[Function]} | ||
type="button" | ||
> | ||
<IconMinusThin | ||
color="#909090" | ||
height={14} | ||
width={14} | ||
/> | ||
</PlainButton> | ||
<input | ||
aria-label="Column size" | ||
className="bdl-GridViewSlider-range" | ||
<div> | ||
<SliderRoot | ||
className="bdl-GridViewSlider" | ||
max={6} | ||
min={4} | ||
onChange={[Function]} | ||
minusButtonLabel="Decrease column size" | ||
onValueChange={[Function]} | ||
plusButtonLabel="Increase column size" | ||
step={1} | ||
type="range" | ||
value={3} | ||
/> | ||
<PlainButton | ||
aria-label="Increase column size" | ||
className="bdl-GridViewSlider-button" | ||
onClick={[Function]} | ||
type="button" | ||
> | ||
<IconPlusThin | ||
color="#909090" | ||
height={14} | ||
width={14} | ||
/> | ||
</PlainButton> | ||
</div> | ||
`; |
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.