You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(select): add helperText and errorText properties (#30143)
Issue number: resolves#29205
---------
## What is the current behavior?
Select does not support helper and error text.
## What is the new behavior?
- Adds support for `helperText` and `errorText`
- Adds parts for `helper-text`, `error-text` and `supporting-text`
- Adds an e2e test for helper and error text with functional tests and
screenshot tests
## Does this introduce a breaking change?
- [ ] Yes
- [x] No
## Other information
[Preview](https://ionic-framework-git-rou-11551-ionic1.vercel.app/src/components/select/test/bottom-content)
---------
Co-authored-by: swimer11 <[email protected]>
---------
Co-authored-by: Brandy Smith <[email protected]>
* If `true`, the user cannot interact with the select.
2772
2772
*/
2773
2773
"disabled": boolean;
2774
+
/**
2775
+
* Text that is placed under the select and displayed when an error is detected.
2776
+
*/
2777
+
"errorText"?: string;
2774
2778
/**
2775
2779
* The toggle icon to show when the select is open. If defined, the icon rotation behavior in `md` mode will be disabled. If undefined, `toggleIcon` will be used for when the select is both open and closed.
* The fill for the item. If `"solid"` the item will have a background. If `"outline"` the item will be transparent with a border. Only available in `md` mode.
2780
2784
*/
2781
2785
"fill"?: 'outline'|'solid';
2786
+
/**
2787
+
* Text that is placed under the select and displayed when no error is detected.
2788
+
*/
2789
+
"helperText"?: string;
2782
2790
/**
2783
2791
* The interface the select should use: `action-sheet`, `popover`, `alert`, or `modal`.
* If `true`, the user cannot interact with the select.
7617
7625
*/
7618
7626
"disabled"?: boolean;
7627
+
/**
7628
+
* Text that is placed under the select and displayed when an error is detected.
7629
+
*/
7630
+
"errorText"?: string;
7619
7631
/**
7620
7632
* The toggle icon to show when the select is open. If defined, the icon rotation behavior in `md` mode will be disabled. If undefined, `toggleIcon` will be used for when the select is both open and closed.
* The fill for the item. If `"solid"` the item will have a background. If `"outline"` the item will be transparent with a border. Only available in `md` mode.
7625
7637
*/
7626
7638
"fill"?: 'outline'|'solid';
7639
+
/**
7640
+
* Text that is placed under the select and displayed when no error is detected.
7641
+
*/
7642
+
"helperText"?: string;
7627
7643
/**
7628
7644
* The interface the select should use: `action-sheet`, `popover`, `alert`, or `modal`.
0 commit comments