How do you insert a link in a calsite-dropdown-item?
I tried this:
<calcite-dropdown-item>
<calcite-link href="https://cnn.com" target="_blank">Link text</calcite-link>
</calcite-dropdown-item>
and
<calcite-dropdown-item>
<a href="https://cnn.com" target="_blank">Link text</a>
</calcite-dropdown-item>
The mouse works but you cannot click on the link by using the keyboard.
Solved! Go to Solution.
Check out the storybook for calcite-dropdown; one of the examples is 'Items as Links':
https://esri.github.io/calcite-components/?path=/story/components-buttons-dropdown--items-as-links
Check out the storybook for calcite-dropdown; one of the examples is 'Items as Links':
https://esri.github.io/calcite-components/?path=/story/components-buttons-dropdown--items-as-links
Thank you!