diff --git a/src/Nri/Ui/Checkbox/V7.elm b/src/Nri/Ui/Checkbox/V7.elm index 4991468e..65405db6 100644 --- a/src/Nri/Ui/Checkbox/V7.elm +++ b/src/Nri/Ui/Checkbox/V7.elm @@ -233,7 +233,7 @@ view { label, selected } attributes = specificId Nothing -> - Util.safeIdWithPrefix "checkbox-v7-" label + Util.safeIdWithPrefix "checkbox-v7" label config_ = { identifier = idValue diff --git a/src/Nri/Ui/PremiumCheckbox/V8.elm b/src/Nri/Ui/PremiumCheckbox/V8.elm index b6206469..172f4250 100644 --- a/src/Nri/Ui/PremiumCheckbox/V8.elm +++ b/src/Nri/Ui/PremiumCheckbox/V8.elm @@ -203,7 +203,7 @@ view { label, onChange } attributes = specificId Nothing -> - Util.safeIdWithPrefix "checkbox-" label + Util.safeIdWithPrefix "checkbox" label isPremium = config.premiumDisplay /= PremiumDisplay.Free diff --git a/src/Nri/Ui/Select/V8.elm b/src/Nri/Ui/Select/V8.elm index 820b5c0d..50e90c18 100644 --- a/src/Nri/Ui/Select/V8.elm +++ b/src/Nri/Ui/Select/V8.elm @@ -476,7 +476,7 @@ viewChoice current choice = -} generateId : String -> String generateId = - safeIdWithPrefix "nri-select-" + safeIdWithPrefix "nri-select" selectArrowsCss : { config | disabled : Bool } -> Css.Style diff --git a/src/Nri/Ui/TextInput/V7.elm b/src/Nri/Ui/TextInput/V7.elm index f24cf82e..9342951b 100644 --- a/src/Nri/Ui/TextInput/V7.elm +++ b/src/Nri/Ui/TextInput/V7.elm @@ -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 = diff --git a/src/TabsInternal.elm b/src/TabsInternal.elm index 9d6137a4..7e9ffdd7 100644 --- a/src/TabsInternal.elm +++ b/src/TabsInternal.elm @@ -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"