-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(select): add modal
interface to ion-select
docs
#3872
docs(select): add modal
interface to ion-select
docs
#3872
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
The `modal` interface has a single `Close` button in the header. This button is only responsible for dismissing the modal. Any selections made will persist | ||
after clicking this button or if the modal is dismissed using an alternative method. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't update the playground despite adding this section since the "close" button isn't customizable
Customizing the interface dialog should be done by following the Customization section in that interface's documentation: | ||
Customizing the interface dialog should be done by following the styling sections (CSS shadow parts, CSS custom properties, and slots) in | ||
that interface's documentation: | ||
|
||
- [Alert Customization](alert.md#customization) | ||
- [Action Sheet Customization](action-sheet.md#customization) | ||
- [Popover Customization](popover.md#customization) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These links didn't exist anymore, so tried to update this section to point users in the right direction
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Tested locally using the dev build with all demos & StackBlitz examples. 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, minor suggestions
### Modal | ||
|
||
import ModalExample from '@site/static/usage/v8/select/interfaces/modal/index.md'; | ||
|
||
<ModalExample /> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: Move this before Popover so it's alphabetic.
- [Alert](alert.md#css-shadow-parts) | ||
- [Action Sheet](action-sheet.md#css-shadow-parts) | ||
- [Popover](popover.md#css-shadow-parts) | ||
- [Modal](modal.md#css-shadow-parts) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: Move this before Popover so it's alphabetic.
<ion-item> | ||
<ion-select label="Modal" id="customModalSelect" interface="modal" placeholder="Select One"> | ||
<ion-select-option value="reese's">Reese's</ion-select-option> | ||
<ion-select-option value="snickers">Snickers</ion-select-option> | ||
<ion-select-option value="twix">Twix</ion-select-option> | ||
</ion-select> | ||
</ion-item> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: Move this before Popover so it's alphabetic.
* docs(select): update select docs for modal interface * fix(select): point playground to correct demo
* docs(select): add `modal` interface to `ion-select` docs (#3872) * docs(select): update select docs for modal interface * fix(select): point playground to correct demo * feat(segment): add playground & docs for segment view (#3875) * feat(segment): add playground & docs for segment view * fix(segment-view): api import version * fix(segment-content): usage & common API sections * Force CI run
NOTE: These docs are for an unreleased feature, to test, please update the version used by the playground to the following dev build:
8.3.4-dev.11730315987.18af6259
What's Changed:
modal
interface where appropriatemodal
interface playgroundmodal
typeAssociated feature PR: ionic-team/ionic-framework#29972