Merge remote-tracking branch 'origin/master' into lab/readme--replace-old-usages

This commit is contained in:
Juan Edi 2019-08-13 09:19:44 -03:00
commit 6f110da8f3
2 changed files with 9 additions and 3 deletions

View File

@ -3,7 +3,7 @@
"name": "NoRedInk/noredink-ui",
"summary": "UI Widgets we use at NRI",
"license": "BSD-3-Clause",
"version": "6.30.0",
"version": "6.31.0",
"exposed-modules": [
"Nri.Ui.Alert.V2",
"Nri.Ui.Alert.V3",

View File

@ -3,7 +3,7 @@ module Nri.Ui.Button.V9 exposing
, Attribute
, icon, custom
, onClick
, linkSpa, linkExternal, linkWithMethod, linkWithTracking, linkExternalWithTracking
, href, linkSpa, linkExternal, linkWithMethod, linkWithTracking, linkExternalWithTracking
, small, medium, large
, exactWidth, unboundedWidth, fillContainerWidth
, primary, secondary, danger, premium
@ -30,7 +30,7 @@ module Nri.Ui.Button.V9 exposing
## Behavior
@docs onClick
@docs linkSpa, linkExternal, linkWithMethod, linkWithTracking, linkExternalWithTracking
@docs href, linkSpa, linkExternal, linkWithMethod, linkWithTracking, linkExternalWithTracking
## Sizing
@ -161,6 +161,12 @@ type Link
| ExternalWithTracking
{-| -}
href : String -> Attribute msg
href url =
set (\attributes -> { attributes | url = url })
{-| Use this link for routing within a single page app.
This will make a normal <a> tag, but change the Events.onClick behavior to avoid reloading the page.