Clay: Reorder buttons ClayDualListBox

Created on 3 Sep 2020  路  4Comments  路  Source: liferay/clay

  • [X] I have searched the issues of this repository and believe that this is not a duplicate.

Is there an example you can provide via codesandbox.com?

Both are examples of ClayDualListBox with the out-of-the-box implementation.

What are the steps to reproduce?

You can view these results with the out-of-the-box component.

What is the expected result?

  1. When there is only one element in the "In Use" box, disable both reorder buttons.
  2. When there are two elements, and the user selects the first one, disable the reorder up button.
  3. When there are two elements, and the user selects the second one, disable the reorder down button.

Actual behavior screenshots

1.
Screenshot 2020-09-03 at 17 18 59

2.
Screenshot 2020-09-03 at 17 19 10

3.
Screenshot 2020-09-03 at 17 19 14

I don't know if it's a bug or an improvement. But I think it would be very nice to have it.

Thanks! 馃槃

3.x clay-components bug

Most helpful comment

I think this would be an improvement, but it makes a lot of sense, thanks for bringing this @dgarciasarai 馃檪.

All 4 comments

cc: @susanavr

I think this would be an improvement, but it makes a lot of sense, thanks for bringing this @dgarciasarai 馃檪.

Thanks @matuzalemsteles :)

Sounds like a neat improvement, gonna try and make it happen! Thanks @dgarciasarai <3

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bryceosterhaus picture bryceosterhaus  路  5Comments

dgarciasarai picture dgarciasarai  路  3Comments

brunofarache picture brunofarache  路  5Comments

kresimir-coko picture kresimir-coko  路  3Comments

drakonux picture drakonux  路  3Comments