Skip to content

Commit

Permalink
Updated appearance of locked state in premium checkbox component
Browse files Browse the repository at this point in the history
  • Loading branch information
mandla-noredink committed Oct 2, 2023
1 parent 6d86a1f commit 7084c92
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/Nri/Ui/PremiumCheckbox/V8.elm
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import Css exposing (..)
import Html.Styled.Attributes as Attributes exposing (class, css)
import Html.Styled.Events as Events
import Nri.Ui.Checkbox.V7 as Checkbox
import Nri.Ui.Colors.V1 as Colors
import Nri.Ui.Data.PremiumDisplay as PremiumDisplay exposing (PremiumDisplay)
import Nri.Ui.Fonts.V1 as Fonts
import Nri.Ui.Html.Attributes.V2 as Extra
Expand Down Expand Up @@ -302,14 +303,20 @@ viewLockedButton { idValue, label, containerCss, onLockedMsg } =
, css
[ displayFlex
, alignItems center
, cursor notAllowed
, position relative
, Fonts.baseFont
, fontSize (px 15)
, Css.outline3 (Css.px 2) Css.solid Css.transparent
]
]
[ Checkbox.viewIcon [] (CheckboxIcons.lockOnInside idValue)
, Html.span [] [ Html.text label ]
[ Checkbox.viewIcon [] CheckboxIcons.uncheckedDisabled
, Html.span
[ css
[ color Colors.gray45
]
]
[ Html.text label ]
]
]
]
Expand Down

0 comments on commit 7084c92

Please sign in to comment.