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

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

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

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

Research direction

Start by locating the Switch and Switch item implementations, their component specifications and overviews, and the shared .Switch.indicator design tokens. Review the v1.6.0 changes and the requirement for design tokens v2.10; update the helper link behavior, token names and documentation. Done means both components and their documentation reflect the release notes, with the renamed tokens used and deprecated tokens addressed.

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
Kotlin
Stars
28
Forks
6
Avg merge
2d 12h
Merged PRs (30d)
38

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-android

All issues in Orange-OpenSource/ouds-android

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.