File tree Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @spectrum-css/colorslider " : minor
3
+ ---
4
+
5
+ # S2 colorslider migration
6
+
7
+ This migrates the ` colorslider ` component to S2. Custom properties have been remapped per the design spec.
8
+
9
+ | Before | After |
10
+ | ------------------------- | -------------------------- |
11
+ | ` --spectrum-gray-900-rgb ` | ` --spectrum-gray-1000-rgb ` |
Original file line number Diff line number Diff line change 1
1
/*!
2
- * Copyright 2023 Adobe. All rights reserved.
3
- *
2
+ * Copyright 2024 Adobe. All rights reserved.
3
+ *
4
4
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License. You may obtain a copy
6
6
* of the License at <http://www.apache.org/licenses/LICENSE-2.0>
7
- *
7
+ *
8
8
* Unless required by applicable law or agreed to in writing, software distributed under
9
9
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
10
10
* OF ANY KIND, either express or implied. See the License for the specific language
16
16
--spectrum-color-slider-handle-margin-block : var (--spectrum-component-top-to-text-75 );
17
17
18
18
/* @todo Refactor with --spectrum-color-slider-border-color once gray rgb token is no longer necessary to workaround nested rgb color token value using rgba(). */
19
- --spectrum-color-slider-border-color-rgba : rgba (var (--spectrum-gray-900 -rgb ), var (--spectrum-color-slider-border-opacity ));
19
+ --spectrum-color-slider-border-color-rgba : rgba (var (--spectrum-gray-1000 -rgb ), var (--spectrum-color-slider-border-opacity ));
20
20
21
21
/* Checkerboard pattern */
22
22
--spectrum-color-slider-checkerboard-size : var (--spectrum-opacity-checkerboard-square-size );
74
74
inset-inline-start : 50% ;
75
75
inset-block-start : 0 ;
76
76
}
77
-
78
- .spectrum-ColorSlider-handle {
79
- inset-inline-start : 50% ;
80
- inset-block-start : 0 ;
81
- }
82
77
}
83
78
84
79
.spectrum-ColorSlider-handle {
You can’t perform that action at this time.
0 commit comments