-
Notifications
You must be signed in to change notification settings - Fork 129
Open
Labels
Description
To reproduce:
- Create a form with a text field and text trailing visual:
form do |f|
f.text_field(
name: :days_displayed,
label: "Days displayed on project activity"
type: :number,
trailing_visual: {
text: { text: "minutes" }
},
)Actual behavior
The trailing visual text is always truncated.
Expected behavior
- The trailing visual text should not be truncated by default.
- Truncation could be provided as an option.
Note
The behavior of PVC differs from Primer React implementation.
<FormControl>
<FormControl.Label>Enter monies</FormControl.Label>
<TextInput trailingVisual="minutes" placeholder="200" />
</FormControl>(example taken from Primer React Storybook)