Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ns065186 committed Oct 23, 2023
1 parent f21f38e commit c164eb3
Show file tree
Hide file tree
Showing 43 changed files with 16 additions and 17 deletions.
1 change: 0 additions & 1 deletion packages/terra-slider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
},
"dependencies": {
"classnames": "^2.2.5",
"keycode-js": "^3.1.0",
"prop-types": "^15.5.8",
"terra-theme-context": "^1.8.0",
"uuid": "3.4.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/terra-slider/src/Slider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const propTypes = {

const defaultProps = {
isDisabled: false,
onChange: null,
onChange: undefined,
};

class Slider extends React.Component {
Expand Down Expand Up @@ -100,7 +100,7 @@ class Slider extends React.Component {

const minLabel = minimumLabel || minimumValue;
const maxLabel = maximumLabel || maximumValue;
const VisuallyHiddenTextValue = (minimumLabel || maximumLabel)
const visuallyHiddenTextValue = (minimumLabel || maximumLabel)
? `Adjust slider to select a value between ${minimumLabel} (${minimumValue}) and ${maximumLabel} (${maximumValue})`
: `Adjust slider to select a value between ${minimumValue} and ${maximumValue}`;
const descriptionId = uuidv4();
Expand All @@ -118,7 +118,7 @@ class Slider extends React.Component {
<span className={cx('slider-label', 'slider-max-label')} aria-hidden="true">
{maxLabel}
</span>
<VisuallyHiddenText id={descriptionId} text={VisuallyHiddenTextValue} />
<VisuallyHiddenText id={descriptionId} text={visuallyHiddenTextValue} />
</div>
);
}
Expand Down
26 changes: 13 additions & 13 deletions packages/terra-slider/src/Slider.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,20 @@
.input-range {
-webkit-appearance: none; /* stylelint-disable-line property-no-vendor-prefix, plugin/no-unsupported-browser-features */
background-color: transparent;
cursor: pointer;
margin-left: var(--terra-slider-input-range-margin-left, 0.5rem);
margin-right: var(--terra-slider-input-range-margin-right, 0.5rem);
min-height: 3.143rem;
min-width: 17.143rem;
width: 70%;
min-height: var(--terra-slider-input-range-min-height, 3.143rem);
min-width: var(--terra-slider-input-range-min-width, 17.143rem);
width: var(--terra-slider-input-range-width, 70%);

&:disabled {
opacity: 30%;
cursor: default;
opacity: var(--terra-slider-input-range-disabled-opacity, 30%);
}

&:focus {
outline: none;
}
}

Expand All @@ -66,15 +72,14 @@
border-style: solid;
border-width: var(--terra-slider-thumb-border-width, 0.071rem);
box-shadow: var(--terra-slider-thumb-box-shadow, 0 0 0.286rem 0 rgba(0, 0, 0, 0.25));
cursor: pointer;
height: var(--terra-slider-thumb-height, 1.715rem);
margin-top: -0.57rem;
width: var(--terra-slider-thumb-width, 1.715rem);
}

.input-range:focus::-webkit-slider-thumb {
outline: var(--terra-slider-thumb-focus-outline, 0.143rem dashed #000);
outline-offset: 0.072rem;
outline-offset: var(--terra-slider-thumb-focus-outline-offset, 0.071rem);
}

.input-range:hover::-webkit-slider-thumb {
Expand All @@ -98,7 +103,6 @@
.input-range:disabled::-webkit-slider-thumb {
-webkit-appearance: none; /* stylelint-disable-line property-no-vendor-prefix, plugin/no-unsupported-browser-features */
background: var(--terra-slider-thumb-disabled-background, #007cc3);
cursor: default;
}

/* For IE/Edge */
Expand All @@ -117,15 +121,14 @@
border-style: solid;
border-width: var(--terra-slider-thumb-border-width, 0.071rem);
box-shadow: var(--terra-slider-thumb-box-shadow, 0 0 0.286rem 0 rgba(0, 0, 0, 0.25));
cursor: pointer;
height: var(--terra-slider-thumb-height, 1.715rem);
margin-top: -0.57rem;
width: var(--terra-slider-thumb-width, 1.715rem);
}

.input-range:focus::-ms-thumb {
outline: var(--terra-slider-thumb-focus-outline, 0.143rem dashed #000);
outline-offset: 0.071rem;
outline-offset: var(--terra-slider-thumb-focus-outline-offset, 0.071rem);
}

.input-range:hover::-ms-thumb {
Expand All @@ -148,7 +151,6 @@
.input-range:disabled::-ms-thumb {
-webkit-appearance: none; /* stylelint-disable-line property-no-vendor-prefix, plugin/no-unsupported-browser-features */
background: var(--terra-slider-thumb-disabled-background, #007cc3);
cursor: default;
}

/* For Firefox */
Expand All @@ -167,15 +169,14 @@
border-style: solid;
border-width: var(--terra-slider-thumb-border-width, 0.071rem);
box-shadow: var(--terra-slider-thumb-box-shadow, 0 0 0.286rem 0 rgba(0, 0, 0, 0.25));
cursor: pointer;
height: var(--terra-slider-thumb-height, 1.715rem);
margin-top: -0.57rem;
width: var(--terra-slider-thumb-width, 1.715rem);
}

.input-range:focus::-moz-range-thumb {
outline: var(--terra-slider-thumb-focus-outline, 0.143rem dashed #000);
outline-offset: 0.071rem;
outline-offset: var(--terra-slider-thumb-focus-outline-offset, 0.071rem);
}

.input-range:hover::-moz-range-thumb {
Expand All @@ -198,6 +199,5 @@
.input-range:disabled::-moz-range-thumb {
-moz-appearance: none; /* stylelint-disable-line property-no-vendor-prefix, plugin/no-unsupported-browser-features */
background: var(--terra-slider-thumb-disabled-background, #007cc3);
cursor: default;
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c164eb3

Please sign in to comment.