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

Add confirm text #243

Closed
wants to merge 2 commits into from
Closed

Add confirm text #243

wants to merge 2 commits into from

Conversation

KeithWM
Copy link

@KeithWM KeithWM commented Feb 3, 2023

Added the option to add a custom text to a "Confirm" button. Currently it showed the rather unfriendly "Submit Query" text on my setup (might be OS/browser dependent?). It now shows the text "Confirm" by default, but the user can specify a different text by use of an optional (non-keyword) argument.

I hope you like it, but am happy to make any changes as you see fit.

@github-actions
Copy link

github-actions bot commented Feb 3, 2023

Try this Pull Request!

Open Julia and type:

julia> import Pkg
julia> Pkg.activate(temp=true)
julia> Pkg.add(url="https://github.com/KeithWM/PlutoUI.jl", rev="add-confirm-text")
julia> using PlutoUI

Or run this code in your browser: Run with binder

@pankgeorg
Copy link
Member

The current behaviour is to let the user agent choose a text, according to localization settings. We want to maintain this behaviour, at least as the default one. Could you adjust the default to fall back to this behaviour and only override if you explicitly pass some text?

@KeithWM
Copy link
Author

KeithWM commented Feb 3, 2023

Hi Panagiotis,

Good idea! I will adjust it and update the PR.

Keith

genericallyterrible added a commit to genericallyterrible/PlutoUI.jl that referenced this pull request Feb 21, 2024
genericallyterrible added a commit to genericallyterrible/PlutoUI.jl that referenced this pull request Feb 21, 2024
@genericallyterrible
Copy link
Contributor

Thanks for the inspiration for #294! Since #294 is now merged, this one should probably close.

@KeithWM
Copy link
Author

KeithWM commented Feb 22, 2024

Wow I really dropped the ball there, thanks for picking it up!

@KeithWM KeithWM closed this Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants