-
Notifications
You must be signed in to change notification settings - Fork 32
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
New: Add option for disabled button text (fixes #207) #214
Conversation
It's working as described, it feels a bit strange that throughout the page trickle says it's locked but on the last block it doesn't if finalText is set despite it being locked, might be confusing to users. |
@joe-allen-89 Maybe we should add locked text for final and start as well? We never use those options in projects, as far as I know. |
I'd prefer you called it |
Maybe it should just take precedence over
|
@joe-allen-89 @oliverfoster Changes made and PR description updated |
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.
👍
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.
👀
🎉 This PR is included in version 7.2.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Fix #207
New
disabledText
anddisabledAriaLabel
.Testing
_styleBeforeCompletion
should be set tovisible
so that you can see the button before it is enabledtext
is set butdisabledText
is not set.text
anddisabledText
are set as well asstartText
andfinalText
The order of precedence that text will be shown is:
disabledText
startText
finalText
text
For instance, if the Trickle is on the final block and
disabledText
is set, that will be used. Otherwise, it will check forfinalText
when the button is disabled. Finally, it will fall back totext
.