Commit 71a9bac
authored
RAC: swap custom outline variant for ui library secondary (#1254)
* Use the library's `secondary` for the default button variant
The app preset's `outline` variant had no pressed state, so the Save button and
every other default-variant button gave no press feedback.
It went missing in the Chakra port. The old `outline` was a partial override of
Chakra's own `outline`, and `extendTheme` deep-merges function variants by
calling both — so it inherited `_active: { bg: <colorScheme>.100 }` from the
`ghost` variant Chakra's outline spreads. It set `_hover.bg: transparent` to
suppress ghost's hover wash but left `_active` alone, so read as a standalone
definition there was nothing to suggest a pressed state existed.
Rather than restate it, drop the fork: the difference from the library's
`secondary` is text one stop darker at rest, and hover darkening the border
instead of the text. 0.17% of pixels change and nothing moves.
The three explicit `variant="outline"` sites in the simulator action bar move
to `secondary` with it.
Needs the paired brand.50 alias in the private theme package, or the pressed
wash resolves to Chakra blue.
* Bump private preset for brand.50 stop1 parent 64ba956 commit 71a9bac
3 files changed
Lines changed: 4 additions & 12 deletions
File tree
- .github/workflows
- src
- deployment/default
- simulator
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | 112 | | |
120 | 113 | | |
121 | 114 | | |
| |||
143 | 136 | | |
144 | 137 | | |
145 | 138 | | |
146 | | - | |
147 | 139 | | |
148 | 140 | | |
149 | 141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
0 commit comments