-
Notifications
You must be signed in to change notification settings - Fork 18
Switches do not need text #225
Description
Describe the bug
The Dnn Switches in the common components are not localized in the provided french language pack.
To Reproduce
Steps to reproduce the behavior:
- Go to any persona bar module that uses switches
Expected behavior
Text should not be required on the switches. They do not always represent On/Off, sometimes the meaning should be Enabled/Disabled or Yes/No.

Furthermore on many languages the words On/Off is much longer than 2 or 3 letters and the switches are usually placed in a very tight spot which may not have to room for words like (Allumé/Éteint or Activé/Désactivé) and so on. Also if the language pack does not have that value, they show SwitchOn or SwitchOff.

The switch position and color should be enough for people to understand when they are on or off. For accessibility reasons, we can leave it there but not visible, as aria tags or just with a css rule that hides them for screens/print but keeps them for screenreaders.