fresh icon indicating copy to clipboard operation
fresh copied to clipboard

Can we disable setActiveLinks on anchor element with href, or don't modify the aria-current if it's already set?

Open mblonyox opened this issue 5 months ago • 0 comments

Hi, i'm using Fresh with daisyUI in my project, the Tabs component are detecting if a tab is active using some prop in it's element.

The setActiveLink currently only check the pathname and ignore the query parameters in it's href property. It makes all the tab styled as active tab.

My current solution is apply another CSS class such as .tab-inactive and add some custom rule to style. https://github.com/mblonyox/peraturan.info/commit/fbba538d76fac75ffb2f2ae1b1e437e573b280a1

Can we make the setActiveLinks match specific to href matching the query parameters, or only set the aria-current if it's not set?

mblonyox avatar Sep 21 '25 06:09 mblonyox