Skip to content

Commit c080b38

Browse files
committed
[button, link] added noWrap for both, used in ProductHead UIK-4918
1 parent 763e7be commit c080b38

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

semcore/button/src/component/ButtonLink/ButtonLink.type.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { Intergalactic } from '@semcore/core';
2+
import type { LinkProps } from '@semcore/link';
23

34
import type {
45
AbstractButtonAddonProps,
@@ -17,7 +18,7 @@ export type ButtonLinkSize = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;
1718
*/
1819
type Use = 'primary' | 'secondary';
1920

20-
export type ButtonLinkProps = AbstractButtonProps<ButtonLinkSize, Use, never>;
21+
export type ButtonLinkProps = AbstractButtonProps<ButtonLinkSize, Use, never> & LinkProps;
2122

2223
export type ButtonLinkTextProps = AbstractButtonTextProps<ButtonLinkSize>;
2324

semcore/link/src/Link.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { Intergalactic } from '@semcore/core';
33
import type { TextProps } from '@semcore/typography';
44
import type React from 'react';
55

6-
export type LinkProps = Intergalactic.InternalTypings.EfficientOmit<TextProps, 'ellipsis' | 'hintProps'> & {
6+
export type LinkProps = Intergalactic.InternalTypings.EfficientOmit<TextProps, 'ellipsis' | 'hintProps' | 'noWrap'> & {
77
/**
88
* CSS property of the display link (inline|inline-block)
99
* @default false

stories/components/product-head/advanced/examples/long-long-title.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const Demo = () => {
2727
</Text>
2828
</Title>
2929
<Header.Links>
30-
<ButtonLink addonLeft={Chat}>Feedback</ButtonLink>
30+
<ButtonLink noWrap addonLeft={Chat}>Feedback</ButtonLink>
3131
<Link noWrap addonLeft={BookM}>User manual</Link>
3232
</Header.Links>
3333
</Header.Row>

0 commit comments

Comments
 (0)