- adds `nriDescription` and `testId` helpers
- adds `maybe` helperExtras for working with Html.Attributes.
This is the new version of Nri.Ui.Html.Attributes.Extra.
conditionally include an attribute. Useful for CSS classes generated with
UniqueClass!
Transform a maybe value to an attribute or attach none
Use this list of attributes instead of applying Attributes.target "_blank"
directly. This prevents an exploits like "tabnabbing", among other things.
See these resources:
Note: this does not handle html escaping the description before building the querySee Cypress best practices: https://docs.cypress.io/guides/references/best-practices.html#Selecting-Elements
Represents an attribute with no semantic meaning, useful for conditionals.
This is implemented such that whenever Html.Attributes.Extra.none is encountered by VirtualDom it will set a meaningless property on the element object itself to null:
It's totally safe and lets us clean up conditional and maybe attributes