@rogieking/figui3 9.4.10 → 9.4.12
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/CHANGELOG.md +26 -0
- package/components.css +26 -5
- package/dist/components.css +1 -1
- package/dist/fig.css +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,32 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [9.4.12]
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Added a stronger translucent border token and a standalone menu-item checkbox example.
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- Unchecked checkboxes now use the stronger translucent border and transparent background tokens.
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- Standalone `fig-menu-item` hover backgrounds now render within the correct stacking context.
|
|
18
|
+
|
|
19
|
+
## [9.4.11]
|
|
20
|
+
|
|
21
|
+
### Added
|
|
22
|
+
|
|
23
|
+
- Added a filter menu playground example with radio and checkbox states.
|
|
24
|
+
- Added a leading label to the labeled-separator menu example.
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
|
|
28
|
+
- Menu items now adjust edge padding for prepend and append content, and first separators sit flush at the top of menus.
|
|
29
|
+
- Utility, editor, dialog-example, and native-element navigation groups now start collapsed, with native elements ordered last.
|
|
30
|
+
|
|
5
31
|
## [9.4.10]
|
|
6
32
|
|
|
7
33
|
### Added
|
package/components.css
CHANGED
|
@@ -277,6 +277,10 @@
|
|
|
277
277
|
rgba(0, 0, 0, 0.1),
|
|
278
278
|
rgba(255, 255, 255, 0.1)
|
|
279
279
|
);
|
|
280
|
+
--figma-color-bordertranslucentstrong: light-dark(
|
|
281
|
+
rgba(0, 0, 0, 0.2),
|
|
282
|
+
rgba(255, 255, 255, 0.2)
|
|
283
|
+
);
|
|
280
284
|
--figma-color-bg-transparent: light-dark(
|
|
281
285
|
rgba(0, 0, 0, 0.05),
|
|
282
286
|
rgba(255, 255, 255, 0.05)
|
|
@@ -2799,8 +2803,8 @@ input[type="checkbox"]:not(.switch) {
|
|
|
2799
2803
|
width: var(--size);
|
|
2800
2804
|
height: var(--size);
|
|
2801
2805
|
aspect-ratio: 1/1;
|
|
2802
|
-
box-shadow: inset 0 0 0 1px var(--figma-color-
|
|
2803
|
-
background-color: var(--figma-color-bg-
|
|
2806
|
+
box-shadow: inset 0 0 0 1px var(--figma-color-bordertranslucentstrong);
|
|
2807
|
+
background-color: var(--figma-color-bg-transparent);
|
|
2804
2808
|
vertical-align: middle;
|
|
2805
2809
|
|
|
2806
2810
|
&::after {
|
|
@@ -6751,7 +6755,7 @@ fig-menu-item {
|
|
|
6751
6755
|
display: flex;
|
|
6752
6756
|
flex-shrink: 0;
|
|
6753
6757
|
align-items: center;
|
|
6754
|
-
gap:
|
|
6758
|
+
gap: 0;
|
|
6755
6759
|
width: 100%;
|
|
6756
6760
|
padding: var(--fig-menu-item-padding);
|
|
6757
6761
|
min-height: var(--spacer-4);
|
|
@@ -6761,6 +6765,7 @@ fig-menu-item {
|
|
|
6761
6765
|
color: inherit;
|
|
6762
6766
|
font-weight: var(--body-medium-fontWeight);
|
|
6763
6767
|
position: relative;
|
|
6768
|
+
isolation: isolate;
|
|
6764
6769
|
|
|
6765
6770
|
h3{
|
|
6766
6771
|
margin: 0 0 var(--spacer-1) 0;
|
|
@@ -6801,12 +6806,23 @@ fig-menu-item {
|
|
|
6801
6806
|
}
|
|
6802
6807
|
}
|
|
6803
6808
|
|
|
6804
|
-
& > [slot="prepend"]
|
|
6809
|
+
& > [slot="prepend"],
|
|
6810
|
+
& > [slot="append"] {
|
|
6805
6811
|
margin-top: calc(var(--spacer-1) * -1);
|
|
6806
6812
|
margin-bottom: calc(var(--spacer-1) * -1);
|
|
6807
6813
|
}
|
|
6808
6814
|
|
|
6809
|
-
&:
|
|
6815
|
+
&:has(> [slot="append"]) {
|
|
6816
|
+
--fig-menu-item-padding: var(--spacer-1,0.25rem) var(--spacer-3,0.75rem) var(--spacer-1,0.25rem) var(--spacer-3,0.75rem);
|
|
6817
|
+
}
|
|
6818
|
+
&:has(> [slot="prepend"]) {
|
|
6819
|
+
--fig-menu-item-padding: var(--spacer-1,0.25rem) var(--spacer-3,0.75rem) var(--spacer-1,0.25rem) var(--spacer-2,0.5rem);
|
|
6820
|
+
}
|
|
6821
|
+
&:has(> [slot="prepend"]):has(> [slot="append"]) {
|
|
6822
|
+
--fig-menu-item-padding: var(--spacer-1,0.25rem) var(--spacer-3,0.75rem) var(--spacer-1,0.25rem) var(--spacer-2,0.5rem);
|
|
6823
|
+
}
|
|
6824
|
+
|
|
6825
|
+
&:not(:has(> :not([slot="prepend"], [slot="append"]))) > [slot="prepend"] {
|
|
6810
6826
|
display: inline-flex;
|
|
6811
6827
|
vertical-align: middle;
|
|
6812
6828
|
}
|
|
@@ -6874,6 +6890,11 @@ fig-menu-item {
|
|
|
6874
6890
|
margin-bottom: var(--spacer-1,0.25rem);
|
|
6875
6891
|
background: transparent;
|
|
6876
6892
|
|
|
6893
|
+
&:first-of-type,
|
|
6894
|
+
&:first-child {
|
|
6895
|
+
margin-top: 0;
|
|
6896
|
+
}
|
|
6897
|
+
|
|
6877
6898
|
&::before {
|
|
6878
6899
|
content: "";
|
|
6879
6900
|
display: block;
|