Skip to content
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

feat: custom text buttons ion-select interface="modal" #30295

Open
3 tasks done
phyr0s opened this issue Mar 24, 2025 · 2 comments
Open
3 tasks done

feat: custom text buttons ion-select interface="modal" #30295

phyr0s opened this issue Mar 24, 2025 · 2 comments
Labels

Comments

@phyr0s
Copy link

phyr0s commented Mar 24, 2025

Prerequisites

Describe the Feature Request

I'm opening this issue to request the ability to customize the close button text for the ion-select component when using the "modal" interface. Currently, there is no working or documented method to change the default "Close" button text. Even when attempting to override the text with interfaceOptions (or similar properties such as cancelText), the text remains unchanged.

Steps to Reproduce:

Create an component with interface="modal".

Attempt to customize the close button text using interfaceOptions, for example:
<ion-select
interface="modal"
[interfaceOptions]="{ cancelText: 'Dismiss' }">

Notice that the close button still displays the default text ("Close").

I found a related discussion in issue #21155, which addresses similar limitations when using the alert interface, but there is currently no solution for the modal interface.

It would be highly beneficial for customization if a mechanism were implemented to override the default close button text in the modal interface of ion-select

Describe the Use Case

Describe Preferred Solution

No response

Describe Alternatives

No response

Related Code

No response

Additional Information

No response

@ionitron-bot ionitron-bot bot added the triage label Mar 24, 2025
@fftyjw
Copy link

fftyjw commented Mar 28, 2025

I'm stuck here, too. Neither "cancelText" nor "okText" property is working.

@niconaso
Copy link

niconaso commented Apr 3, 2025

@phyr0s I created this PR that allows to customize the Close Button when the interface of the select is Modal.
I chose the parameter “closeText” but I think “cancelText” is better suited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants