@folijs/react 0.4.0 → 0.5.0

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/styles.css CHANGED
@@ -162,7 +162,7 @@
162
162
  cursor: pointer;
163
163
  }
164
164
 
165
- .foli-menu-item:hover,
165
+ .foli-menu-item:not([aria-disabled="true"]):hover,
166
166
  .foli-menu-item:focus-visible {
167
167
  background: var(--foli-toolbar-hover);
168
168
  }
@@ -172,6 +172,27 @@
172
172
  outline-offset: -2px;
173
173
  }
174
174
 
175
+ /* An item that cannot apply here (the table menu's): shown, focusable, dimmed. */
176
+ .foli-menu-item[aria-disabled="true"] {
177
+ opacity: 0.5;
178
+ cursor: default;
179
+ }
180
+
181
+ /* The table menu's checkbox item: a check before it when on. */
182
+ .foli-menu-item[role="menuitemcheckbox"]::before {
183
+ content: "";
184
+ width: 1em;
185
+ }
186
+
187
+ .foli-menu-item[role="menuitemcheckbox"][aria-checked="true"]::before {
188
+ /* No accessible name of its own: the item's checked state says it. */
189
+ content: "\2713" / "";
190
+ }
191
+
192
+ .foli-table-dialog input {
193
+ flex: 0 0 5em;
194
+ }
195
+
175
196
  .foli-menu-swatch {
176
197
  width: 16px;
177
198
  height: 16px;