We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
nth-child
nth-of-type
1 parent 7d86e75 commit dd2eca7Copy full SHA for dd2eca7
src/viser/client/src/components/Slider.tsx
@@ -50,13 +50,13 @@ export default function SliderComponent({
50
...(marks === null
51
? /* Shift the mark labels so they don't spill too far out the left/right when we only have min and max marks. */
52
{
53
- ":first-child": {
54
- "div:nth-child(2)": {
+ ":first-of-type": {
+ "div:nth-of-type(2)": {
55
transform: "translate(-0.2rem, 0.03rem)",
56
},
57
58
- ":last-child": {
59
+ ":last-of-type": {
60
transform: "translate(-90%, 0.03rem)",
61
62
0 commit comments