@lumx/core 4.22.0-next.2 → 4.22.1-alpha.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.
@@ -7449,6 +7449,9 @@ table {
7449
7449
  outline: 1px auto currentColor;
7450
7450
  outline-offset: 2px;
7451
7451
  }
7452
+ :where(p) .lumx-link {
7453
+ text-decoration: underline;
7454
+ }
7452
7455
  .lumx-link:disabled, .lumx-link[aria-disabled=true] {
7453
7456
  opacity: 0.5;
7454
7457
  cursor: default;
@@ -279,4 +279,23 @@ export declare function setup({ component: Link, components: { Text, Icon, Custo
279
279
  render: ({ children, ...args }: any) => import("react").JSX.Element;
280
280
  decorators: ((story: any, context: any) => any)[];
281
281
  };
282
+ InParagraph: {
283
+ args: {
284
+ href: string;
285
+ children: string;
286
+ };
287
+ argTypes: {
288
+ children: {
289
+ control: boolean;
290
+ };
291
+ isDisabled: {
292
+ control: boolean;
293
+ };
294
+ typography: {
295
+ control: boolean;
296
+ };
297
+ };
298
+ render: ({ hasIcon, children, ...args }: any) => import("react").JSX.Element;
299
+ decorators: ((story: any, context: any) => any)[];
300
+ };
282
301
  };
package/lumx.css CHANGED
@@ -8130,6 +8130,9 @@ table {
8130
8130
  outline: 1px auto currentColor;
8131
8131
  outline-offset: 2px;
8132
8132
  }
8133
+ :where(p) .lumx-link {
8134
+ text-decoration: underline;
8135
+ }
8133
8136
  .lumx-link:disabled, .lumx-link[aria-disabled=true] {
8134
8137
  opacity: 0.5;
8135
8138
  cursor: default;
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "dependencies": {
9
9
  "@floating-ui/dom": "^1.7.5",
10
- "@lumx/icons": "^4.22.0-next.2",
10
+ "@lumx/icons": "^4.22.1-alpha.0",
11
11
  "classnames": "^2.3.2",
12
12
  "focus-visible": "^5.0.2",
13
13
  "lodash": "4.18.1",
@@ -66,7 +66,7 @@
66
66
  "update-version-changelog": "yarn version-changelog ../../CHANGELOG.md"
67
67
  },
68
68
  "sideEffects": false,
69
- "version": "4.22.0-next.2",
69
+ "version": "4.22.1-alpha.0",
70
70
  "devDependencies": {
71
71
  "@rollup/plugin-typescript": "^12.3.0",
72
72
  "@testing-library/dom": "^10.4.1",
@@ -90,5 +90,5 @@
90
90
  "vite-tsconfig-paths": "^5.1.4",
91
91
  "vitest": "^4.1.10"
92
92
  },
93
- "stableVersion": "4.21.0"
93
+ "stableVersion": "4.22.0"
94
94
  }
@@ -5,6 +5,13 @@
5
5
  .#{$lumx-base-prefix}-link {
6
6
  @include lumx-link;
7
7
 
8
+ // Underline links sitting inside a paragraph of text so they stay distinguishable
9
+ // from the surrounding text without relying on color alone (WCAG 1.4.1).
10
+ // `:where` keeps the specificity at 0-1-0 so this stays easy to override.
11
+ :where(p) & {
12
+ text-decoration: underline;
13
+ }
14
+
8
15
  &:disabled,
9
16
  &[aria-disabled="true"] {
10
17
  @include lumx-state-disabled-input;