Closed kajanan1212 closed 1 year ago
Correct, label
is not optional as can be seen in API. Providing a copyable_text without a proper label
is not a good idea UX-wise since user needs to know what it is that they are about to copy.
When we give an empty/space string to the label
, the copy icon of the ui.copyable_text
moves a little down from the top right corner.
@mturoci is it not a bug?
As said in the comment above, the label should always be provided. Icon moving a little down is not desired, but not worth the time fixing + prevents bad UX as bonus now so win-win.
Wave SDK Version, OS
Wave SDK: 0.25.3 , OS: MacOs
Actual behavior
Label of the ui.copyable_text is not an optional field. Therefore, we should provide a label as below.
If we try to avoid the label by giving an empty/space string to it then copy icon of the ui.copyable_text will move little bit down from the top right corner as below.
Expected behavior
Label of the ui.copyable_text should be an optional field.
OR
Giving an empty/space string to the label of the ui.copyable_text shouldn't move the icon from the top right corner.
Steps To Reproduce
You can run the following code to create the issue: