@rogieking/figui3 10.0.9 → 10.0.11
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 +16 -0
- package/base.css +12 -11
- package/components.css +12 -6
- package/dist/base.css +1 -1
- package/dist/components.css +1 -1
- package/dist/fig.css +1 -1
- package/dist/fig.js +1 -1
- package/fig.js +2 -21
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [10.0.11]
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Updated search-input icons to use the secondary icon color while unfocused and the primary icon color while focused.
|
|
10
|
+
|
|
11
|
+
## [10.0.10]
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- Unified thin scrollbar colors and styling across the base stylesheet and playground.
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- Prevented delayed chooser media loads from overriding the user’s scroll position.
|
|
20
|
+
|
|
5
21
|
## [10.0.9]
|
|
6
22
|
|
|
7
23
|
### Changed
|
package/base.css
CHANGED
|
@@ -88,16 +88,23 @@ iframe{
|
|
|
88
88
|
background-color: var(--figma-color-text-selection);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
/*
|
|
91
|
+
/* Scrollbars */
|
|
92
|
+
* {
|
|
93
|
+
scrollbar-width: thin;
|
|
94
|
+
scrollbar-color: var(--figma-color-border) transparent;
|
|
95
|
+
}
|
|
96
|
+
|
|
92
97
|
::-webkit-scrollbar {
|
|
93
98
|
width: var(--spacer-1);
|
|
94
|
-
/* Width of the vertical scrollbar */
|
|
95
99
|
height: var(--spacer-1);
|
|
96
|
-
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
::-webkit-scrollbar-track {
|
|
103
|
+
background: transparent;
|
|
97
104
|
}
|
|
98
105
|
|
|
99
106
|
::-webkit-scrollbar-thumb {
|
|
100
|
-
background-color: var(--figma-color-
|
|
107
|
+
background-color: var(--figma-color-border);
|
|
101
108
|
border-radius: calc(var(--spacer-1) / 2);
|
|
102
109
|
}
|
|
103
110
|
|
|
@@ -105,13 +112,7 @@ iframe{
|
|
|
105
112
|
background-color: var(--figma-color-bg-secondary);
|
|
106
113
|
}
|
|
107
114
|
|
|
108
|
-
/*
|
|
109
|
-
* {
|
|
110
|
-
scrollbar-width: thin;
|
|
111
|
-
scrollbar-color: var(--figma-color-bg-tertiary)
|
|
112
|
-
var(--figma-color-bg-secondary);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
+
/* helper classes/defaults */
|
|
115
116
|
.subtle {
|
|
116
117
|
color: var(--figma-color-text-tertiary);
|
|
117
118
|
}
|
package/components.css
CHANGED
|
@@ -4195,6 +4195,14 @@ fig-input-number {
|
|
|
4195
4195
|
pointer-events: none;
|
|
4196
4196
|
}
|
|
4197
4197
|
|
|
4198
|
+
&[type="search"] > fig-icon[data-generated="search-prefix"] {
|
|
4199
|
+
color: var(--figma-color-icon-secondary);
|
|
4200
|
+
}
|
|
4201
|
+
|
|
4202
|
+
&[type="search"]:focus-within > fig-icon[data-generated="search-prefix"] {
|
|
4203
|
+
color: var(--figma-color-icon);
|
|
4204
|
+
}
|
|
4205
|
+
|
|
4198
4206
|
& [slot="prepend"],
|
|
4199
4207
|
& [slot="append"] {
|
|
4200
4208
|
svg {
|
|
@@ -6368,9 +6376,12 @@ fig-chooser {
|
|
|
6368
6376
|
var(--fig-choice-selection-ring-gutter)
|
|
6369
6377
|
);
|
|
6370
6378
|
scroll-behavior: smooth;
|
|
6371
|
-
scrollbar-width: none;
|
|
6372
6379
|
width: calc(100% - var(--fig-chooser-inline-margin) * 2);
|
|
6373
6380
|
|
|
6381
|
+
&:not([overflow="scrollbar"]) {
|
|
6382
|
+
scrollbar-width: none;
|
|
6383
|
+
}
|
|
6384
|
+
|
|
6374
6385
|
&[scroll-behavior="auto"] {
|
|
6375
6386
|
scroll-behavior: auto;
|
|
6376
6387
|
}
|
|
@@ -6424,11 +6435,6 @@ fig-chooser {
|
|
|
6424
6435
|
}
|
|
6425
6436
|
}
|
|
6426
6437
|
|
|
6427
|
-
&[overflow="scrollbar"] {
|
|
6428
|
-
scrollbar-width: thin;
|
|
6429
|
-
scrollbar-color: var(--figma-color-border) transparent;
|
|
6430
|
-
}
|
|
6431
|
-
|
|
6432
6438
|
&[layout="horizontal"] {
|
|
6433
6439
|
flex-direction: row;
|
|
6434
6440
|
overflow: auto hidden;
|
package/dist/base.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
html,:host{width:100%;height:100%;color:var(--figma-color-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:var(--font-family);font-size:16px;font-weight:var(--body-medium-fontWeight);letter-spacing:var(--body-letter-spacing);background-color:var(--figma-color-bg);margin:0;padding:0;line-height:1rem}body,:host{font-size:var(--body-medium-fontSize);letter-spacing:var(--body-letter-spacing);line-height:1.4545em}h1,h2{font-weight:var(--body-large-strong-fontWeight);font-size:var(--body-large-fontSize);text-wrap:pretty}h3{font-weight:var(--body-medium-strong-fontWeight);font-size:var(--body-medium-fontSize)}strong{font-weight:var(--body-medium-strong-fontWeight)}section{padding:var(--spacer-1) var(--spacer-3);margin-bottom:var(--spacer-2);&:last-child{margin-bottom:0}}fieldset{padding:var(--spacer-1) var(--spacer-3)}hr{background-color:var(--figma-color-border);width:100%;height:1px;margin:var(--spacer-2) 0;border:none;&[vertical]{width:1px;height:100%;margin:0 var(--spacer-2)}}iframe{background-color:#0000;border:0;flex:auto;width:100%;max-width:100%;height:max-content;min-height:0;max-height:100%;margin:0;display:block}*,:before,:after{box-sizing:border-box}::selection{background-color:var(--figma-color-text-selection)}::selection{background-color:var(--figma-color-text-selection)}::-webkit-scrollbar{width:var(--spacer-1);height:var(--spacer-1)}::-webkit-scrollbar-thumb{background-color:var(--figma-color-
|
|
1
|
+
html,:host{width:100%;height:100%;color:var(--figma-color-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:var(--font-family);font-size:16px;font-weight:var(--body-medium-fontWeight);letter-spacing:var(--body-letter-spacing);background-color:var(--figma-color-bg);margin:0;padding:0;line-height:1rem}body,:host{font-size:var(--body-medium-fontSize);letter-spacing:var(--body-letter-spacing);line-height:1.4545em}h1,h2{font-weight:var(--body-large-strong-fontWeight);font-size:var(--body-large-fontSize);text-wrap:pretty}h3{font-weight:var(--body-medium-strong-fontWeight);font-size:var(--body-medium-fontSize)}strong{font-weight:var(--body-medium-strong-fontWeight)}section{padding:var(--spacer-1) var(--spacer-3);margin-bottom:var(--spacer-2);&:last-child{margin-bottom:0}}fieldset{padding:var(--spacer-1) var(--spacer-3)}hr{background-color:var(--figma-color-border);width:100%;height:1px;margin:var(--spacer-2) 0;border:none;&[vertical]{width:1px;height:100%;margin:0 var(--spacer-2)}}iframe{background-color:#0000;border:0;flex:auto;width:100%;max-width:100%;height:max-content;min-height:0;max-height:100%;margin:0;display:block}*,:before,:after{box-sizing:border-box}::selection{background-color:var(--figma-color-text-selection)}::selection{background-color:var(--figma-color-text-selection)}*{scrollbar-width:thin;scrollbar-color:var(--figma-color-border) transparent}::-webkit-scrollbar{width:var(--spacer-1);height:var(--spacer-1)}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background-color:var(--figma-color-border);border-radius:calc(var(--spacer-1) / 2)}::-webkit-scrollbar-thumb:hover{background-color:var(--figma-color-bg-secondary)}.subtle{color:var(--figma-color-text-tertiary)}p{text-wrap:pretty;margin-block:1em}p:first-child{margin-block-start:0}p:last-child{margin-block-end:0}label,p,li,figcaption{color:var(--figma-color-text-secondary);text-wrap:pretty}h2{font-weight:var(--body-medium-strong-fontWeight);margin:var(--spacer-2) 0;text-wrap:pretty}a{color:var(--figma-color-text-brand);text-decoration:none;&:hover{text-decoration:underline}}
|