@patternfly/react-core 4.253.0 → 4.253.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-core",
3
- "version": "4.253.0",
3
+ "version": "4.253.1",
4
4
  "description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
5
5
  "main": "dist/js/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -70,5 +70,5 @@
70
70
  "react": "^16.8 || ^17 || ^18",
71
71
  "react-dom": "^16.8 || ^17 || ^18"
72
72
  },
73
- "gitHead": "e19bfad93c0e242c2b1416daa3b347d7f3864f2c"
73
+ "gitHead": "ef07e5bd27b1048e5f63b88a822ef3357e8c8e3e"
74
74
  }
@@ -416,9 +416,6 @@ export const Slider: React.FunctionComponent<SliderProps> = ({
416
416
  {buildSteps()}
417
417
  </div>
418
418
  )}
419
- {isInputVisible && inputPosition === 'aboveThumb' && (
420
- <div className={css(styles.sliderValue, styles.modifiers.floating)}>{displayInput()}</div>
421
- )}
422
419
  {hasTooltipOverThumb ? (
423
420
  <Tooltip entryDelay={0} content={findAriaTextValue()}>
424
421
  {thumbComponent}
@@ -426,6 +423,9 @@ export const Slider: React.FunctionComponent<SliderProps> = ({
426
423
  ) : (
427
424
  thumbComponent
428
425
  )}
426
+ {isInputVisible && inputPosition === 'aboveThumb' && (
427
+ <div className={css(styles.sliderValue, styles.modifiers.floating)}>{displayInput()}</div>
428
+ )}
429
429
  </div>
430
430
  {isInputVisible && inputPosition === 'right' && <div className={css(styles.sliderValue)}>{displayInput()}</div>}
431
431
  {rightActions && <div className={css(styles.sliderActions)}>{rightActions}</div>}
@@ -475,6 +475,17 @@ exports[`slider renders slider with input above thumb 1`] = `
475
475
  </div>
476
476
  </div>
477
477
  </div>
478
+ <div
479
+ aria-disabled="false"
480
+ aria-label="Value"
481
+ aria-valuemax="100"
482
+ aria-valuemin="0"
483
+ aria-valuenow="50"
484
+ aria-valuetext="50"
485
+ class="pf-c-slider__thumb"
486
+ role="slider"
487
+ tabindex="0"
488
+ />
478
489
  <div
479
490
  class="pf-c-slider__value pf-m-floating"
480
491
  >
@@ -498,17 +509,6 @@ exports[`slider renders slider with input above thumb 1`] = `
498
509
  </span>
499
510
  </div>
500
511
  </div>
501
- <div
502
- aria-disabled="false"
503
- aria-label="Value"
504
- aria-valuemax="100"
505
- aria-valuemin="0"
506
- aria-valuenow="50"
507
- aria-valuetext="50"
508
- class="pf-c-slider__thumb"
509
- role="slider"
510
- tabindex="0"
511
- />
512
512
  </div>
513
513
  </div>
514
514
  </DocumentFragment>