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 title to all clickable components #3296

Conversation

nickygerritsen
Copy link
Contributor

@nickygerritsen nickygerritsen commented May 4, 2016

Description

As discussed on Slack yesterday, this will add a title to all clickable components.
I modified the play toggle test to also check for this, as this was the only test that seemed to test for this already.

Because controlText is already called in createEl I had to pass the element to set the title on to the function.

Specific Changes proposed

This sets the title HTML attribute on all clickable components when setting controlText_ initially or changing it using controlText(...).

Requirements Checklist

  • Feature implemented / Bug fixed
  • Unit Tests updated or fixed
  • Reviewed by Two Core Contributors

@nickygerritsen nickygerritsen mentioned this pull request May 4, 2016
2 tasks
* @return {String}
* @method controlText
*/
controlText(text) {
controlText(text, el=this.el()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it possible that this.el() will end up returning nothing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only during the first call, because that is made from createEl, at which time this.el() does not eixst yet. Afterwards it should always exist, right?

@gkatsev
Copy link
Member

gkatsev commented May 11, 2016

LGTM.

@gkatsev gkatsev added confirmed minor This PR can be added to a minor release. It should not be added to a patch release. labels May 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed minor This PR can be added to a minor release. It should not be added to a patch release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants