@adamjanicki/ui 1.4.8 → 1.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/style.css +10 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adamjanicki/ui",
3
- "version": "1.4.8",
3
+ "version": "1.5.0",
4
4
  "description": "Basic UI components and hooks for React in TypeScript",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
package/style.css CHANGED
@@ -107,11 +107,11 @@ a:focus:not(:focus-visible) {
107
107
  outline: none;
108
108
  }
109
109
 
110
- a:not([disabled]):focus-visible,
111
- button:not([disabled]):focus-visible {
112
- outline: 3px solid var(--ajui-link-color);
113
- outline-offset: 0;
110
+ a,
111
+ button {
112
+ outline-color: var(--ajui-link-color);
114
113
  }
114
+
115
115
  .ajui-input-default:not([disabled]):focus-within,
116
116
  .ajui-select-container:not([disabled]):focus-within {
117
117
  outline: 3px solid var(--ajui-focus-ring-color);
@@ -243,14 +243,14 @@ a {
243
243
  }
244
244
 
245
245
  @media (hover: hover) {
246
- .ajui-button--primary:not([disabled]):is(:hover, :focus-visible),
247
- .ajui-icon-button:not([disabled]):is(:hover, :focus-visible),
248
- .ajui-link-default:is(:hover, :focus-visible) {
246
+ .ajui-button--primary:not([disabled]):hover,
247
+ .ajui-icon-button:not([disabled]):hover,
248
+ .ajui-link-default:hover {
249
249
  opacity: var(--ajui-default-opacity-dim);
250
250
  }
251
251
 
252
- .ajui-button--transparent:not([disabled]):is(:hover, :focus-visible),
253
- .ajui-button--secondary:not([disabled]):is(:hover, :focus-visible) {
252
+ .ajui-button--transparent:not([disabled]):hover,
253
+ .ajui-button--secondary:not([disabled]):hover {
254
254
  box-shadow: inset 0 0 0 1px var(--ajui-button-secondary-border-hover);
255
255
  }
256
256
  }
@@ -316,7 +316,7 @@ a {
316
316
  outline: none;
317
317
  box-shadow: none;
318
318
  cursor: pointer;
319
- background-color: inherit;
319
+ background-color: transparent;
320
320
  padding: 0.75rem 1.75rem 0.75rem 0.5rem;
321
321
  font-size: 1rem;
322
322
  font-weight: 400;