Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: Software Heritage not asked yet (this run's --swh-calls were used up); no fork with tag 9.6.0 found (15 same-name repos checked); no cached copy. Use another version.
A collection of helpers for working with NoRedInk projects
Wrapper around
Html.Styled.stylewhich adds a data-nri-description attribute to make it easier to tell from Inspect Element where in our code that element was defined.Takes a function that creates an element, and pre-applies styles and a
data-nri-descriptionattribution to it.Here, the bigButton function we've defined using styled button is identical to the normal button function, except that it has pre-applied the attribute of css [ padding (px 30), fontWeight bold ], as well as
(attribute "data-nri-description" "big button").You can pass more attributes to bigButton as usual (including other css attributes). They will be applied after the pre-applied styles.
Note: normally
attributeMsgwill be the same asmsg, but we need them to be different types for special cases whenfnneeds to do tricky things. For example, some elements from the Accessibility.Styled package use the following type signature: