Skip to content

feat(button): add anchor button #797 #798

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MerlinMoos
Copy link
Contributor

@MerlinMoos MerlinMoos commented Jul 31, 2025

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

Which package are you modifying?

Primitives

  • accordion
  • alert
  • alert-dialog
  • aspect-ratio
  • avatar
  • badge
  • breadcrumb
  • button
  • calendar
  • card
  • carousel
  • checkbox
  • collapsible
  • combobox
  • command
  • context-menu
  • data-table
  • date-picker
  • dialog
  • dropdown-menu
  • form-field
  • hover-card
  • icon
  • input
  • input-otp
  • label
  • menubar
  • navigation-menu
  • pagination
  • popover
  • progress
  • radio-group
  • scroll-area
  • select
  • separator
  • sheet
  • skeleton
  • slider
  • sonner
  • spinner
  • switch
  • table
  • tabs
  • textarea
  • toggle
  • toggle-group
  • tooltip
  • typography

Others

  • trpc
  • nx
  • repo
  • cli

What is the current behavior?

Currently it's not possible to to disable a hlmBtn on a element

Closes #797

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@MerlinMoos
Copy link
Contributor Author

hey @ashley-hunter as already discussed in Discord, here is my solution for that :)

If you have any sugestions, please let me know

@thatsamsonkid
Copy link
Collaborator

@MerlinMoos - Just curious, what's the reason for the separate set of directives? Could we not just determine what the host element is in a new brnButton directive and if it's attached to an anchor do the logic you have there or maybe I'm missing something

@MerlinMoos MerlinMoos force-pushed the add-disabled-to-anchor branch from 697fffc to 76e1585 Compare August 2, 2025 07:21
@MerlinMoos
Copy link
Contributor Author

hey @thatsamsonkid you are right, I changed it. Maybe you can have a second look.

Copy link
Collaborator

@thatsamsonkid thatsamsonkid left a comment

Choose a reason for hiding this comment

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

@MerlinMoos - Awesome thanks, I think in general this LGTM!


constructor() {
const element = this._elementRef.nativeElement;
if (element.tagName === 'A')
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is just a nitpick/preference but I know it's technically one statement but I feel like since it spans multiple lines it's probably better to wrap it in braces

Copy link
Collaborator

@ashley-hunter ashley-hunter left a comment

Choose a reason for hiding this comment

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

Hey! Thank you! Apologies for the delay, I know I told you I would take a look a few days ago on discord but I've been travelling with no access to my laptop.

Looks great! Just a few small suggestions, but nice work! Thanks

@MerlinMoos
Copy link
Contributor Author

hey @ashley-hunter I made the changes 👍

@MerlinMoos MerlinMoos force-pushed the add-disabled-to-anchor branch from 40a4ea9 to eb62edd Compare August 7, 2025 06:46
Copy link
Collaborator

@ashley-hunter ashley-hunter left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thank you!

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.

button: set disabled state on tags with a hlmBtn
3 participants