Skip to content

[minor] ButtonLink implementation - #2594

Open
PelayoFelgueroso wants to merge 13 commits into
masterfrom
button-link
Open

PelayoFelgueroso wants to merge 13 commits into
masterfrom
button-link

Conversation

@PelayoFelgueroso

Copy link
Copy Markdown
Collaborator

Checklist
(Check off all the items before submitting)

  • Build process is done without errors. All tests pass in the /lib directory.
  • Self-reviewed the code before submitting.
  • Meets accessibility standards.
  • Added/updated documentation to /website as needed.
  • Added/updated tests as needed.

Purpose
Implement ButtonLink component based on the design and add documentation to the site.

@PelayoFelgueroso
PelayoFelgueroso marked this pull request as ready for review November 5, 2026 10:08
@Jialecl
Jialecl self-requested a review November 9, 2026 07:41
@Jialecl Jialecl self-assigned this Nov 9, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since all tests are the same scenarios with different props we can merge them into a function that returns the buttons.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we do the same at the Button component? And probably to other components too?

<Title title="Visited" theme="light" level={4} />
<DxcFlex>
<ExampleContainer pseudoState="pseudo-visited">
<DxcButtonLink href="#not-visited" label="Button Link" mode="primary" />

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit confusing to use href "#not-visited" for the visited tests. Nothing serious but I would prefer to change this to avoid confusions.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@Jialecl Jialecl Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just this component is fine. That way we reduce the scope of the PR to just the button link component.

/>
</ExampleContainer>
</DxcFlex>
<Title title="Large" theme="light" level={2} />

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this scenario covered by the default button?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we increase a bit more the coverage of the component?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment thread packages/lib/src/index.ts

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

types are not exported.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants