82 Commits

Author SHA1 Message Date
c1ecf94e4e feat(select): add event for when overlay is dismissed (#24099) 2021-12-14 08:39:25 -06:00
5a2a335784 fix(all): Ionic components that use child Ionic components are now correctly defined (#24191)
resolves #23571, #24116, #24129

Co-authored-by: Liam DeBeasi <liamdebeasi@icloud.com>
2021-11-11 12:18:38 -05:00
2497a53255 fix(select): focus selected item in popovers (#23991) 2021-10-01 13:33:53 -05:00
2c07a1566b feat(select): update popover interface to match MD spec on desktop, allow multiple values in popover interface (#23474)
resolves #23657
resolves #15500
resolves #12310
2021-07-20 11:23:00 -04:00
f3ae4319bb fix(input, select, textarea): change type of placeholder prop to string only (#23500)
resolves #22976

BREAKING CHANGE: Updated the `placeholder` property on `ion-input`, `ion-textarea`, and `ion-select` to have a type of `string | undefined`.
2021-06-24 10:23:19 -04:00
1a5accc5f7 fix(select): class on component now indicates when select is open (#22846)
resolves #22801
2021-02-01 13:02:04 -05:00
07868354aa fix(a11y): only preventDefault for the onClick event (#22573) 2020-11-25 16:56:51 -05:00
ea52db66f0 fix(select): improvements for announcing placeholder and value on screenreaders (#22556)
- Hides select text from screen readers so it isn't announced twice (Android talkback needs this)
- Adds the placeholder text to be announced if there is no value
- Don't add a comma if there is no value/placeholder (NVDA speech viewer)
- Don't announce alert label twice
2020-11-25 15:47:14 -05:00
04b874e32a fix(select): fix a11y issues with axe and screen readers (#22494)
fixes #21552 fixes #21548
2020-11-20 17:18:51 -05:00
8c79e2c5b5 fix(select): change role to listbox (#21609)
fixes https://github.com/ionic-team/ionic/issues/21601
2020-06-25 11:46:52 -04:00
5285824da5 feat(select-option): pass class from the option to the interface for individual styling (#21304)
Co-authored-by: Robb Wright <audaxion@gmail.com>
2020-05-27 12:12:01 -04:00
bcf0fa17a9 docs(select): direct old controller links to component pages (#21167) 2020-04-30 12:10:08 -04:00
a261cb1f67 chore(select): make note about interfaceOptions and alert input/buttons clearer (#21166) 2020-04-30 11:12:54 -04:00
30a1c89688 feat(select): add parts support for placeholder, icon, text (#21108) 2020-04-23 12:14:21 -04:00
976e68da5b refactor(): minor updates for next stencil version (#20787) 2020-03-24 11:59:07 -04:00
926ac3fb47 fix(select): add icon-inner & placeholder part (#20605)
- adds custom test for styling the select parts
- set opacity on icon container
- align items center, this makes the select text align vertically with the icon when used standalone even when changing the font size of the text
2020-02-26 12:08:03 -05:00
a5229d90ca refactor(): remove checked property in favor of parent value (#19449)
BREAKING CHANGE:


The following components have been updated to remove the checked or selected properties:

- Radio
- Segment Button
- Select

Developers should set the value property on the respective parent components in order to managed checked/selected status.

Co-authored-by: Liam DeBeasi <liamdebeasi@users.noreply.github.com>
2020-01-17 17:22:26 -05:00
bef0f53d0d feat(select): add --placeholder-opacity and --placeholder-color, expose shadow parts (#19893)
resolves #17446
2019-11-11 12:49:10 -05:00
48a27636c7 fix(all): component reusage (#18963)
Use new stencil APIs to allow ionic elements to be reused once removed from the DOM.

fixes #18843
fixes #17344
fixes #16453
fixes #15879
fixes #15788
fixes #15484
fixes #17890
fixes #16364
2019-08-27 16:29:37 +02:00
03c1d19e07 perf(all): minify better by using arrow functions (#18730) 2019-07-10 10:33:33 -04:00
34dfc3ce98 refactor(all): updating to newest stencil apis (#18578)
* chore(): update ionicons

* refactor(all): updating to newest stencil apis

* fix lint issues

* more changes

* moreee

* fix treeshaking

* fix config

* fix checkbox

* fix stuff

* chore(): update ionicons

* fix linting errors
2019-06-23 11:26:42 +02:00
b40f7d36d5 fix(): update to Stencil One 🎉🎊 2019-06-19 21:33:50 +02:00
464ec3b70a docs(components): update method and parameter descriptions (#18075) 2019-04-23 12:59:25 -04:00
e5c8c10029 fix(components): include mode classes on components for use in shadow (#17838)
- removes mode-less component classes from the internal CSS, use element instead
- adds mode specific classes `md` or `ios` for styling inside of shadow components
- adds e2e test that verifies mode classes exist on all ionic components, plus checks for specific classes that the components need for internal styling

fixes #17608
2019-04-16 17:28:21 -04:00
1ecfcd1902 fix(select): fix options being added async while overlay is open (#17860)
fixes #15716
fixes #17851
2019-03-26 11:29:24 -04:00
69ecebb159 feat(select): add compareWith property (#17358)
* feat(select): add compareWith property

* style(select): fix lint errors

* test(select): move tests from preview to basic

* refactor(select): improve parameter names in compareOptions method

* chore(): add react usage docs

* chore(): update var names, update examples

* rerun build

* add doc on compareWith
2019-03-01 14:46:42 -05:00
1c9c18b5ea fix(select): Account for when options are not loaded immediately (#17405)
* Added logging to begin debugging issue

* identify potential fix, add test

* fix(select): render when options are loaded after a delay

* fix linter issues

* fix e2e test

* fix edge case with if statement
2019-02-13 08:34:55 -05:00
2b4d7b7be9 fix(angular): apply validation classes properly
* fix(angular): add validation classes to ion-item

* fix(inputs): focus handling

fixes #17171
fixes #16052
fixes #15572
fixes #16452
fixes #17063
2019-01-19 22:56:00 +01:00
3ff9fafe8e fix(select): pass click event to popover interface (#17146)
also updates e2e test so that it will continue to take screenshots after mismatches and adds the popover example to avoid future regressions

references #16715 fixes #17142
2019-01-17 12:16:31 -05:00
6364e4e2a1 fix(inputs): keyboard focus improvements (#16838)
fixes #16815
fixes #16872
fixes #13978
fixes #16610
2019-01-11 19:36:02 +01:00
3d656ac312 docs(all): improve type docs for event 2018-12-28 20:38:24 +01:00
1227d57ac7 fix(select): interfaceOptions can customize mode (#16826)
fixes #16825
2018-12-20 00:50:27 +01:00
f93e4fdc64 fix(datetime): picker inherits mode (#16731)
fixes #16717
2018-12-14 02:07:21 +01:00
fd79b57748 fix(inputs): fix aria with shadow-dom (#16329) 2018-11-16 19:26:55 +01:00
a8be5291bb fix(label): placeholder + floating label (#16111)
* fix(label): placeholder + floating label

* fix placeholder type

* update docs

* uodate docs
2018-11-02 22:15:28 +01:00
ecc2c55370 docs(all): possible values are extracted by stencil (#16190)
* docs(all): possible values are extracted by stencil

* add defaults

* remove all hardcoded defaults

* update stencil
2018-11-02 00:06:40 +01:00
ef6895acbd fix(inputs): disabled handling (#16071) 2018-10-25 22:50:06 +02:00
a72fced6fe fix(all): docs for all missing props 2018-10-11 16:24:08 -05:00
a999c1f0a9 perf(): prevent unnecesary event listener changes 2018-10-09 16:03:14 -05:00
2909e1cc7b chore(): fix component.d.ts random changes 2018-10-08 09:50:35 -05:00
602f668787 fix(select): placeholder can be reset if value = null 2018-09-25 02:29:38 +02:00
f8eafa7a21 fix(all): lint errors 2018-09-24 18:20:52 +02:00
29862e8259 fix(select): show placeholder when multiple is empty
checks for array length before joining the array into this.text, this
prevents the text from being set to an empty string for a multiple
value select, allowing the placeholder to show
2018-09-19 16:46:23 -04:00
92b2011725 test(select): add example for a number select 2018-09-18 18:17:16 -04:00
224b4f83b2 fix(select): add position styles to work as standalone 2018-09-18 15:45:59 -04:00
c49d896e08 refactor(all): using ComponentInterface 2018-09-14 18:47:00 +02:00
6e5c035b39 chore(tslint): disable 'no-floating-promises' 2018-09-14 00:50:44 +02:00
21d1f2e2dd fix(item): update hostContext to use ion-item element
fixes styling issues with children elements using the .in-item class
2018-09-13 11:46:13 -04:00
fcb45d12e2 style(components): don't self close tags 2018-09-12 11:38:20 -04:00
4876df928d chore(): tslint checks 2018-09-06 21:49:35 +02:00