Skip to content
This repository was archived by the owner on May 7, 2019. It is now read-only.

Switches do not need text #225

@valadas

Description

@valadas

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:

  1. 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.
image

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.
image

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.

Screenshots

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions