diff --git a/packages/dev/inspector/src/components/actionTabs/actionTabs.scss b/packages/dev/inspector/src/components/actionTabs/actionTabs.scss index cc2bc4188ca..4864f23a532 100644 --- a/packages/dev/inspector/src/components/actionTabs/actionTabs.scss +++ b/packages/dev/inspector/src/components/actionTabs/actionTabs.scss @@ -216,6 +216,7 @@ $line-padding-left: 2px; opacity: 0.7; transition: opacity 0.2s; } + .range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; @@ -1081,6 +1082,10 @@ $line-padding-left: 2px; outline: none; opacity: 0.7; transition: opacity 0.2s; + + &.overflow { + background-color: red; + } } .range:hover { diff --git a/packages/dev/sharedUiComponents/src/lines/sliderLineComponent.tsx b/packages/dev/sharedUiComponents/src/lines/sliderLineComponent.tsx index 5e6ba02f31a..c6a9ea11d83 100644 --- a/packages/dev/sharedUiComponents/src/lines/sliderLineComponent.tsx +++ b/packages/dev/sharedUiComponents/src/lines/sliderLineComponent.tsx @@ -25,6 +25,7 @@ interface ISliderLineComponentProps { iconLabel?: string; lockObject: LockObject; unit?: React.ReactNode; + allowOverflow?: boolean; } export class SliderLineComponent extends React.Component { @@ -154,8 +155,8 @@ export class SliderLineComponent extends React.Component { const changed = this.prepareDataToRead(this.state.value); this.onChange(changed); @@ -169,7 +170,7 @@ export class SliderLineComponent extends React.Component
this.props.maximum || this.state.value < this.props.minimum) ? " overflow" : "")} type="range" step={this.props.step} min={this.prepareDataToRead(this.props.minimum)}