Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/react-core/src/components/Slider/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -423,16 +423,16 @@ export const Slider: React.FunctionComponent<SliderProps> = ({
{buildSteps()}
</div>
)}
{isInputVisible && inputPosition === 'aboveThumb' && (
<div className={css(styles.sliderValue, styles.modifiers.floating)}>{displayInput()}</div>
)}
{hasTooltipOverThumb ? (
<Tooltip triggerRef={thumbRef} entryDelay={0} content={findAriaTextValue()}>
{thumbComponent}
</Tooltip>
) : (
thumbComponent
)}
{isInputVisible && inputPosition === 'aboveThumb' && (
<div className={css(styles.sliderValue, styles.modifiers.floating)}>{displayInput()}</div>
)}
</div>
{isInputVisible && inputPosition === 'right' && <div className={css(styles.sliderValue)}>{displayInput()}</div>}
{rightActions && <div className={css(styles.sliderActions)}>{rightActions}</div>}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,17 @@ exports[`slider renders slider with input above thumb 1`] = `
</div>
</div>
</div>
<div
aria-disabled="false"
aria-label="Value"
aria-valuemax="100"
aria-valuemin="0"
aria-valuenow="50"
aria-valuetext="50"
class="pf-v5-c-slider__thumb"
role="slider"
tabindex="0"
/>
<div
class="pf-v5-c-slider__value pf-m-floating"
>
Expand Down Expand Up @@ -526,17 +537,6 @@ exports[`slider renders slider with input above thumb 1`] = `
</div>
</div>
</div>
<div
aria-disabled="false"
aria-label="Value"
aria-valuemax="100"
aria-valuemin="0"
aria-valuenow="50"
aria-valuetext="50"
class="pf-v5-c-slider__thumb"
role="slider"
tabindex="0"
/>
</div>
</div>
</DocumentFragment>
Expand Down