Code Monkey home page Code Monkey logo

Comments (4)

hxltrhuxze avatar hxltrhuxze commented on May 20, 2024

The Switch Component

The Switch component has 3 states - unselected, hovered, and selected.

  • By default, there is always one item that has the selected state.
  • Hovering on an item will add a small blue border to it.
  • Clicking it will deselect the currently active item and add the Selected state to the item clicked.

Screenshot 2019-08-08 at 16 20 30

Mobile

As we have limited screen real estate on mobile, changing the Switch to a Select seems most appropriate here. Vertically stacking the selection could be one option, however this will take up a significant amount of room.

Screenshot 2019-08-08 at 16 24 11


Changes from original design

  • Changed the overall style of the Switch to distance itself from a button group/button. As these have different effects for the user, we want to keep them visually separate.

from design-system.

09txzS1qs avatar 09txzS1qs commented on May 20, 2024

The difference between Hover and Selected is quite subtle in terms of border width. I wonder if the hover could be lower contrast and the selected could have a slightly larger border and higher contrast?

from design-system.

m7kvqbe1 avatar m7kvqbe1 commented on May 20, 2024

This is now in active development.

from design-system.

m7kvqbe1 avatar m7kvqbe1 commented on May 20, 2024

WIP @ #266

from design-system.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.