Repository navigation
chore: clean up TODOs - #28657
chore: clean up TODOs#28657
Conversation
| /** | ||
| * A list of options to be displayed in the picker | ||
| */ | ||
| @Prop() items: PickerColumnItem[] = []; |
There was a problem hiding this comment.
Removed in favor of ion-picker-column-option
| * Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. | ||
| * For more information on colors, see [theming](/docs/theming/basics). | ||
| */ | ||
| @Prop({ reflect: true }) color?: Color = 'primary'; |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
|
|
||
| return ( | ||
| <Host | ||
| exportparts={`${PICKER_ITEM_PART}, ${PICKER_ITEM_ACTIVE_PART}`} |
There was a problem hiding this comment.
The column options exist in the light DOM now by default. For pickers in datetime, datetime will continue to expose shadow parts.
| // TODO FW-5580 fix this | ||
| configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => { | ||
| test.describe.skip(title('picker-column: disabled column rendering'), () => { | ||
| test.describe(title('picker-column: disabled column rendering'), () => { |
There was a problem hiding this comment.
I forgot to unskip these tests when working on previous PRs. However, I ran them all locally and verified that they passed during development.
| import { getNumDaysInMonth, is24Hour, getHourCycle } from './helpers'; | ||
| import { getNextMonth, getPreviousMonth, getInternalHourValue } from './manipulation'; | ||
|
|
||
| export interface WheelColumnOption { |
There was a problem hiding this comment.
This interface used to live in picker-column-interfaces. However, it's now really only used for datetime so I decided to move it to the datetime directory. I opted not to include it in datetime/datetime-interfaces since this is a private interface.
There was a problem hiding this comment.
Also decided to call it "Wheel" since that's the terminology we use with datetime. No functionality has changed though.
| scrollbar-width: none; | ||
| } | ||
|
|
||
| .picker-item-empty { |
There was a problem hiding this comment.
I originally thought the old .picker-item CSS wasn't needed. Turns out it's still needed but just for the spacer elements. I updated the selector to make that more clear.
| }} | ||
| > | ||
| <div class="picker-item picker-item-empty" aria-hidden="true"> | ||
| <div class="picker-item-empty" aria-hidden="true"> |
There was a problem hiding this comment.
.picker-item class is no longer needed. See https://github.com/ionic-team/ionic-framework/pull/28657/files#r1418034395 for more info.
This reverts commit 93593b1.
Issue number: N/A
What is the current behavior?
There were a number of TODOs to clean up the remaining code for this feature.
What is the new behavior?
Does this introduce a breaking change?
Other information