-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toggle (Mobile View) #112
Comments
@Berjesty to chat with @DanGenuardi regarding the design and bring back to dpa! |
@DanGenuardi Moving the toggle to the right side for ease of usability perspective is great however to promote clarity of the status of the toggle, it should be in close proximity. My suggestion is to move the status closer to the toggle to prevent confusion. |
I have spoken to @owestinTelus about the accessibility about this updated mobile toggle. |
The proposed solution does not have any negative accessibility concerns.
The text state of the toggle may be more clear if it was closer to the toggle itself but I don't think that's required. The terms 'disabled' vs 'on' can be misleading if they are associated with an on/off toggle If the text label is specific to the 'Data Access' and 'Overage protection' then it could be immediately to the right of the text or below it. |
I have a couple of considerations that I want to introduce regarding this proposed layout, from a development perspective.
|
We are already using toggles within the desktop and tablet layouts. We are not planning on switching to checkboxes for when a customer views this portion of the site on a mobile device. Is there a way we can set up a meeting to discuss this? |
Hey @DanGenuardi I think it may be more clear to continue this conversation in person, and just follow up with the consensus here on GitHub afterwards. I'll reach out to schedule some time with you, and @Berjesty as well. |
I had the discussion with @jesdavpet about a possible fix for this mobile toggle experience we came to the conclusion that this approach would work best. |
Thanks for following up @DanGenuardi ! This design iteration resolves the technical considerations I had raised above. Simplifying the scope in this way makes it a minor layout variant of the existing @lucylist @Berjesty @DougTelus I think it's down to the design review process on this one now. |
I like this iteration. It gives an extra bit of visual clarity. |
Thanks Dan! I'm all good with this version as well all. @lucylist thoughts? |
yes! lots of thoughts :) sorry i didn't see this until enrico showed me. here are some of my thoughts… I think we need to build the component so it allows for flexibility. we will have to build it so that the toggle has the option of adding a label and without a label (the last two screenshots @DanGenuardi attached) Thinking we need to align on the naming of the pieces so i can explain my thoughts…
here's some good guidelines we should incorporate these guidelines in our docs! |
Hi all, Some thoughts for all on this - I implemented elements of this design on the new RA Usage page for Family Manager aka "Data Manager 2". In the reference mentioned above (https://www.nngroup.com/articles/toggle-switch-guidelines/), what has been termed "value" by @lucylist is here defined as "state descriptor". I've ben describing it as "toggle context", or perhaps more formally, it can be thought of having the role of "aria-describedby"(in fact, that's how it's implemented for accessibility in RA Usage). In essence, "describedby" text provides additional context to what "ON" and "OFF" mean for the toggle. It’s only required when on/off are not unambiguous based on the constant label text alone. Take Nutella's usage project an example - for the toggle labelled "Data Access"; ON always has "describedby" of “ON”, but OFF can represent multiple block states (billcycle blocked, data manager blocked, WCC blocked, …). We need this additional "describedby" text to give context to what "OFF" means in this situation for the customer. In my view, an ideal design does not require "describedby" text - ideally the label and the on/off boolean toggle state should give enough context. Furthermore, for accessibility and clarity, I would argue that the toggle label should be mandatory and not change when the toggle is flipped. This is supported by the Apple human interface design guidelines for Switches, which specify that for toggles, "Switches are either on or off. Providing labels that describe these states is redundant and clutters the interface". I'd advocate for this advice above being included in our design guidelines: consistency between mobile web and native helps reduce friction for our customers. In summary:I support the idea that we should have:
|
The Digital Platform Ambassadors met today and have discussed the toggle switch enhancements. Rather than have this issue focus on the naming etc. the main focus of this ticket is to make sure that left/right label/context is available for the swtich. we need to build this enhancement into the community component. the design leads have agreed that the switch needs to align with context/value text |
I believe this issue seems to be lost in process as there seems to be no action items against it, there is no clear next steps as I cannot find it the Project board. To summaries all the concerns raised above we need:
|
Hi @invalidred - I'm on-board with your summary ! Thanks. |
@sketchidea and I updated the story and it needs to be reviewed by a designer and moved to Dev queue if approved. |
@sketchidea @agorovyi @apurvray @varu @Christina-Lo Made the following change:
No blurring please. Thanks! |
BREAKING CHANGES: New design layout for toggleSwitch, styled-components is now a peer dependency Issue #112
BREAKING CHANGE: New design layout for toggleSwitch, styled-components is now a peer dependency Issue #112
@nicmak I've added an Accessibility section to the Acceptance Criteria that will require some refactoring. Moved this back to dev. |
|
BREAKING CHANGE: New design layout for toggleSwitch, styled-components is now a peer dependency Issue #112
BREAKING CHANGE: New design layout for toggleSwitch, styled-components is now a peer dependency Issue #112
BREAKING CHANGE: New design layout for toggleSwitch, styled-components is now a peer dependency Issue #112
BREAKING CHANGE: New design layout for toggleSwitch, styled-components is now a peer dependency Issue #112
This has been released in code and DSM. |
v1.0.5 TDS Community DSM is released: https://telus.invisionapp.com/dsm/telus/tds-community/releases ToggleSwitch is now officially available in design and code
|
Problem statement
Enhance ToggleSwitch with upgraded functionality and design to make it more usable while accommodating business needs
Recommendation
Enhance existing ToggleSwitch component with more features like: loading state, adding optional tooltip, moving label to the left
Design intent
Toggle switches are digital on/off switches. They prompt users to choose between two mutually exclusive options and always have a default value. Toggles should provide immediate results. They are best used for changing the state of system functionalities and preferences.
Designs
Design reference: https://telus.invisionapp.com/share/T5SFO08PCWF#/screens
Source working file: https://invis.io/a/ZC5LFDEMB9Q6
Acceptance criteria
Given I am displaying the ToggleSwitch Component
Given a user is interacting with the ToggleSwitch
Accessibility
Example for styling:
More details about this accessibility decision can be found through this article: Building Inclusive Toggle Buttons
Meta
The text was updated successfully, but these errors were encountered: