Skip to Main Content
Feature Request FR-3026
Product Area User Interface
Status CLOSED

6 Voters

Align Pill Buttons and Switches

j_schuster Public
· Mar 14 2023

We use a lot of Switches, but they can not have the value null. There is always something selected. So you can not really have it as a mandatory field. Because mandatory means, nothing is selected and you need to decide.

So you have to use an Radio Group as a Pill Button. But the layout differs from the switch and looks odd in comparison. 

They both should have the same UI and a switch need to have the option to be unselected.

All you have to do is remove the class: “radio_group” and add the class: “apex-button-group” and it looks the same. Shouldn't be that hard to align that ;-)  

Above is Switch, below is Pill Radio Group: 

This is a great idea! So much that we have already implemented it in a previous release of APEX.

Comments

Comments

  • vincent morneau Admin OP 35 hours ago

    Hi @j_schuster , that was indeed a UI bug, however in APEX 24.2 switches and pills are consistent.

    As far as the tri-state for switches, I'm afraid that's not how switches work, they are boolean values. You are correct about the workaround, and it is the correct way to operate.