OfficeDev / fluent-blocks

A rich component library, still in development, for providing experiences from Microsoft’s Fluent design system
https://aka.ms/fluent-blocks-storybook
MIT License
23 stars 6 forks source link

Allow Links to defer to action handlers even with href #204

Closed thure closed 2 years ago

thure commented 2 years ago

This PR adds nuance to AnchorProps; if the developer specifies preferActionHandler: true, even if Fluent Blocks would render an anchor, it will use event.preventDefault() to prevent navigation and defer to the action handler.

changeset-bot[bot] commented 2 years ago

🦋 Changeset detected

Latest commit: cdb828eb265a8dfb559edb18dfc18d47394a2ccf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | -------------------- | ----- | | @fluent-blocks/react | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR