mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-19 19:51:37 +03:00
Deprecate the sizes in ClickableSvg
This commit is contained in:
parent
6059bdd557
commit
2dc8913dc5
@ -3,12 +3,12 @@ module Nri.Ui.ClickableSvg.V2 exposing
|
||||
, Attribute
|
||||
, onClick
|
||||
, href, linkSpa, linkExternal, linkWithMethod, linkWithTracking, linkExternalWithTracking
|
||||
, small, medium, large
|
||||
, exactWidth, exactHeight
|
||||
, disabled
|
||||
, withBorder
|
||||
, primary, secondary, danger, dangerSecondary
|
||||
, custom, css, nriDescription, testId, id
|
||||
, small, medium, large
|
||||
)
|
||||
|
||||
{-|
|
||||
@ -33,7 +33,6 @@ module Nri.Ui.ClickableSvg.V2 exposing
|
||||
|
||||
## Sizing
|
||||
|
||||
@docs small, medium, large
|
||||
@docs exactWidth, exactHeight
|
||||
|
||||
|
||||
@ -49,6 +48,13 @@ module Nri.Ui.ClickableSvg.V2 exposing
|
||||
|
||||
@docs custom, css, nriDescription, testId, id
|
||||
|
||||
|
||||
### DEPRECATED
|
||||
|
||||
In practice, we don't use these sizes. Remove them!
|
||||
|
||||
@docs small, medium, large
|
||||
|
||||
-}
|
||||
|
||||
import Accessibility.Styled.Widget as Widget
|
||||
@ -154,20 +160,22 @@ type Size
|
||||
| Large
|
||||
|
||||
|
||||
{-| This is the default.
|
||||
{-| This is the default. This attribute will be removed in the next version of ClickableSvg!
|
||||
-}
|
||||
small : Attribute msg
|
||||
small =
|
||||
set (\attributes -> { attributes | size = Small })
|
||||
|
||||
|
||||
{-| -}
|
||||
{-| This attribute will be removed in the next version of ClickableSvg!
|
||||
-}
|
||||
medium : Attribute msg
|
||||
medium =
|
||||
set (\attributes -> { attributes | size = Medium })
|
||||
|
||||
|
||||
{-| -}
|
||||
{-| This attribute will be removed in the next version of ClickableSvg!
|
||||
-}
|
||||
large : Attribute msg
|
||||
large =
|
||||
set (\attributes -> { attributes | size = Large })
|
||||
|
Loading…
Reference in New Issue
Block a user