Skip to content

Commit de7cd76

Browse files
authored
Merge branch 'next' into ROU-11445-select
2 parents 6482b3a + 3091390 commit de7cd76

8 files changed

+31
-0
lines changed

core/src/components/range/range.ionic.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,3 +200,10 @@
200200
:host(.in-item.range-label-placement-stacked) .native-wrapper {
201201
@include margin(null, null, globals.$ion-space-0, null);
202202
}
203+
204+
// Range Focus
205+
// ----------------------------------------------------------------
206+
207+
.range-knob-handle.ion-focused .range-knob {
208+
@include globals.focused-state();
209+
}
798 Bytes
Loading
976 Bytes
Loading
828 Bytes
Loading

core/src/components/range/test/states/range.e2e.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,27 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
7272
});
7373
});
7474
});
75+
76+
configs({ modes: ['ionic-md'], directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
77+
test.describe(title('range: states'), () => {
78+
test('should render focus state', async ({ page }) => {
79+
await page.setContent(
80+
`
81+
<ion-range>
82+
<ion-icon name="volume-off" slot="start"></ion-icon>
83+
<ion-icon name="volume-high" slot="end"></ion-icon>
84+
</ion-range>
85+
`,
86+
config
87+
);
88+
89+
const range = page.locator('ion-range');
90+
91+
const handle = range.locator('.range-knob-handle');
92+
93+
handle.focus();
94+
95+
await expect(range).toHaveScreenshot(screenshot(`range-focus`));
96+
});
97+
});
98+
});
2.41 KB
Loading
3.21 KB
Loading
2.5 KB
Loading

0 commit comments

Comments
 (0)