remove trailing dashes that would be removed anyways

This commit is contained in:
Alex Perkins 2022-11-04 21:42:28 -06:00
parent 51b18470e8
commit ee0248114a
No known key found for this signature in database
GPG Key ID: C7FADD739F72DA0D
5 changed files with 6 additions and 6 deletions

View File

@ -233,7 +233,7 @@ view { label, selected } attributes =
specificId
Nothing ->
Util.safeIdWithPrefix "checkbox-v7-" label
Util.safeIdWithPrefix "checkbox-v7" label
config_ =
{ identifier = idValue

View File

@ -203,7 +203,7 @@ view { label, onChange } attributes =
specificId
Nothing ->
Util.safeIdWithPrefix "checkbox-" label
Util.safeIdWithPrefix "checkbox" label
isPremium =
config.premiumDisplay /= PremiumDisplay.Free

View File

@ -476,7 +476,7 @@ viewChoice current choice =
-}
generateId : String -> String
generateId =
safeIdWithPrefix "nri-select-"
safeIdWithPrefix "nri-select"
selectArrowsCss : { config | disabled : Bool } -> Css.Style

View File

@ -983,7 +983,7 @@ This is for use when you need the DOM element id for use in javascript (such as
-}
generateId : String -> String
generateId =
Util.safeIdWithPrefix "Nri-Ui-TextInput-"
Util.safeIdWithPrefix "Nri-Ui-TextInput"
type alias FloatingContentConfig msg =

View File

@ -193,9 +193,9 @@ viewTabPanel tab selected =
tabToBodyId : String -> String
tabToBodyId =
Util.safeIdWithPrefix "tab-body-"
Util.safeIdWithPrefix "tab-body"
tabToKeyedNode : String -> String
tabToKeyedNode =
Util.safeIdWithPrefix "tabs-internal-keyed-node-"
Util.safeIdWithPrefix "tabs-internal-keyed-node"