I have encountered a problem with the placement of the secondary text in Buttons. The “Placement” toggle puts the secondary text before or after the primary text with the “Spacing” given. The spacing is achieved by adding a margin to the secondary text (top margin for “After”, bottom margin for “Before”)
When switching to break-out mode, “Before” is shown as “true”, "After is shown as “false”. However, it doesn’t quite work that way when manually entering the values in the break-out mode text boxes. The following screenshot shows how the button looks with various entries in the “Placement” text box [the 1st button in the screenshot corresponds to the screenshot above]:
- Placement “Above” is achieved by entering ‘true’ into the textbox
- Placement “Below” is achieved by entering 0, or by leaving it empty.
- ‘false’ seems to be interpreted as invalid input, like any other input that I have tried other than ‘0’, ‘true’, or empty.
Invalid input leads to placement “Before”, but the margin is added as a top margin instead of bottom margin.
Now, the real problem: I want to make the Placement available as a parameter in a button component. The “After” Placement works by picking “” or “0” as a value for the parameter (‘false’ is invalid, just like when manually entering ‘false’). The “Before” placement does not work. ‘true’ behaves the same as an invalid input:
Unrelated to the placement problem: I noticed that the text “0” (just the single digit, no quotation marks) does not show up as button primary or secondary label. That’s why in the second-to-last button above, I have written ‘0’ in quotation marks.