GlSortingItem: Support disabled direction toggle
Identified as part of gitlab!52387 (merged)
Currently we are implementing the sort feature into the Global Search page. After implementing @leipert noticed we hadn't used the
GlSortingItem component but rather used a
GlButtonGroup (which coincidentally is what
GlSortingItem does under the hood)
Discussion about this can be found on this thread: gitlab!52387 (comment 496216001)
The reason this component will not work for this case is that
disabling the sort direction toggle conditionally is not supported.
The reason this is needed is because Advanced Global Search supports a "Most Relevant" feature which doesn't include an
This issue proposes adding the ability to disabling the direction toggle conditionally via a prop. There are concerns that in most cases this wouldn't be expected of a Sort component so I recognize if this isn't worth building here to potentially overcomplicate things.