Skip to content

Commit 694f90a

Browse files
committed
rename css classes to prevent collisions
1 parent cd1cd5e commit 694f90a

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

src/DurationPicker.css

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.picker {
1+
.rdp-picker {
22
-webkit-user-select: none;
33
-moz-user-select: none;
44
-ms-user-select: none;
@@ -10,12 +10,12 @@
1010
}
1111

1212
@media (max-width: 400px) {
13-
.picker {
13+
.rdp-picker {
1414
width: 250px;
1515
}
1616
}
1717

18-
.maskedImageDiv {
18+
.rdp-masked-div {
1919
color: black;
2020
overflow: hidden;
2121
height: 105px;
@@ -36,21 +36,21 @@
3636
);
3737
}
3838

39-
.columnContainer {
39+
.rdp-column-container {
4040
flex-grow: 1;
4141
display: inline-block;
4242
touch-action: none;
4343
}
4444

45-
.column {
45+
.rdp-column {
4646
position: absolute;
4747
pointer-events: none;
4848
touch-action: none;
4949
z-index: 0;
5050
width: 100%;
5151
}
5252

53-
.reticule {
53+
.rdp-reticule {
5454
border: 0;
5555
border-top: 2px solid rgba(109, 202, 236, 1);
5656
height: 2px;
@@ -63,7 +63,7 @@
6363
transform: translateX(-50%);
6464
}
6565

66-
.textOverlay {
66+
.rdp-text-overlay {
6767
position: absolute;
6868
/* font-style: italic; */
6969
display: flex;
@@ -77,7 +77,7 @@
7777
transform: translateX(-50%);
7878
}
7979

80-
.textOverlay div {
80+
.rdp-text-overlay div {
8181
font-size: 17px;
8282
position: relative;
8383
top: 1px;
@@ -87,7 +87,7 @@
8787
font-style: italic;
8888
}
8989

90-
.cell {
90+
.rdp-cell {
9191
display: flex;
9292
align-items: center;
9393
justify-content: center;

src/DurationPicker.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function DurationPicker(props) {
5656
onChange(duration);
5757
}, [duration, onChange]);
5858
return (
59-
<div className="picker">
59+
<div className="rdp-picker">
6060
<DurationPickerColumn
6161
onChange={onChangeHours}
6262
unit="hours"

src/DurationPickerColumn.jsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -273,14 +273,14 @@ function DurationPickerColumn(props) {
273273

274274
const cells = offsetState.cellContents.map(value => {
275275
return (
276-
<div className="cell" key={value}>
276+
<div className="rdp-cell" key={value}>
277277
{toTwoDigitString(value)}
278278
</div>
279279
);
280280
});
281281
return (
282282
<div
283-
className="columnContainer"
283+
className="rdp-column-container"
284284
onTouchMove={moveHandler}
285285
onTouchStart={startHandler}
286286
onTouchEnd={endHandler}
@@ -292,15 +292,15 @@ function DurationPickerColumn(props) {
292292
aria-valuenow={currentSelectionRef.current}
293293
tabIndex={0}
294294
>
295-
<div className="maskedImageDiv">
296-
<hr className="reticule" style={{ top: cellHeight - 1 }} />
297-
<hr className="reticule" style={{ top: cellHeight * 2 - 1 }} />
298-
<div className="textOverlay" style={{ top: cellHeight }}>
295+
<div className="rdp-masked-div">
296+
<hr className="rdp-reticule" style={{ top: cellHeight - 1 }} />
297+
<hr className="rdp-reticule" style={{ top: cellHeight * 2 - 1 }} />
298+
<div className="rdp-text-overlay" style={{ top: cellHeight }}>
299299
{`${toTwoDigitString(currentSelectionRef.current)}`}
300300
<div>{isSmallScreen ? unit[0] : unit}</div>
301301
</div>
302302
<div
303-
className="column"
303+
className="rdp-column"
304304
style={{ top: offsetState.offset || 0 }}
305305
ref={slideyRef}
306306
>

0 commit comments

Comments
 (0)