For component `switch` and `switch item`, update to v1.6.0

Open
#1,100 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
54/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
dart, flutter
Domain
design, mobile

Research direction

Start by locating the Switch and Switch item Flutter components and their tests, then check how design tokens are defined and consumed; this update requires design tokens v2.10. Add the optional Helper link behavior and apply the cursor token renames and deprecations described in the issue. Update both components’ specifications and token documentation, and verify the Helper link is hidden by default, works independently of the Description, and the shared cursor sizing behaves as specified.

Written by the indexing model from the issue text.

Description

⚠️ on hold 💠 component 📱 demo app 🔍 triage 🧰 library
Prerequisites
Description

Verbatims of @TonyAntonyHello below :

Our two Switch components have been updated. Version 1.6.0 is now available:

  • Switch | EA v1.6.0
  • Switch item | EA v1.6.0

[!CAUTION]
Version 2.10 of the design tokens is required for the development of this update.

Release notes:

This update focuses on simplifying the design token architecture of the shared .Switch.indicator component, introducing an optional Helper link for the Switch item, and improving documentation and Figma library organization.

Component updates:

  • Added a new boolean property Helper link to the Switch item, allowing an optional link to be displayed below the component.
  • The Helper link is hidden by default and can be displayed independently of the Description.

Design token updates:

Merged the Cursor width and height tokens in the shared .Switch.indicator component, reducing token redundancy and simplifying size management across both components.
The following tokens have been renamed:

  • ouds-control-switch-size-width-cursor-selected → ouds-control-switch-size-cursor-selected
  • ouds-control-switch-size-width-cursor-unselected → ouds-control-switch-size-cursor-unselected

The following tokens have been deprecated:

  • ouds-control-switch-size-height-cursor-selected
  • ouds-control-switch-size-height-cursor-unselected

The shared size tokens are now used for both the width and height of the Cursor in its non-Pressed states. The existing token values and Pressed-specific width tokens remain unchanged.

Documentation updates:

  • Updated the Overviews and Component Specifications for both components to reflect the latest changes.
  • Updated the Token Repository documentation to reflect the renamed and deprecated tokens.
  • Added Helper link usage and accessibility guidelines for the Switch item.
  • Updated the Rich text guidelines to clarify the use of hyperlinks.

Figma library organization:

The Switch and Switch item components are now organized into two separate sections in Figma, rather than grouped together in a single component family.
Each component now has its own version number, allowing them to be maintained and updated independently while continuing to share the same underlying .Switch.indicator component.

Here is the Figma file.

Dominant language
Dart
Stars
13
Forks
6
Avg merge
7h 41m
Merged PRs (30d)
7

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Orange-OpenSource/ouds-flutter

All issues in Orange-OpenSource/ouds-flutter

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.