Skip to content

Conversation

@janssenhenning
Copy link
Contributor

Possible fix for #44

This commit makes the query changing the text of the toggle button more specific
to not insert the hint in unrelated spans that are nested in the toggleable region

This commit makes the query changing the text of the toggle button more specific
to not insert the hint in unrelated spans that are nested in the toggleable region
@welcome
Copy link

welcome bot commented Jun 20, 2022

Thanks for submitting your first pull request! You are awesome! 🤗

If you haven't done so already, check out EBP's Code of Conduct and our Contributing Guide, as this will greatly help the review process.

Welcome to the EBP community! 🎉

Copy link
Member

@choldgraf choldgraf left a comment

Choose a reason for hiding this comment

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

this looks like a good fix to me!

one quick comment, could you just use the standard class selector approach instead of class=?

I think it'd be:

span.toggle-details__summary-text

Or if there's a rationale for not doing this, that's fine I just haven't seen this usage before

@janssenhenning
Copy link
Contributor Author

@choldgraf No there was no particular reason for the selector like that. I switched it now.
I was working with XML XPaths a lot and not so much javascript and that's just the first thing that came to my mind

Copy link
Member

@choldgraf choldgraf left a comment

Choose a reason for hiding this comment

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

This looks good to me! Will check the output and merge if it looks OK

@choldgraf choldgraf merged commit 7fd95fc into executablebooks:master Jun 30, 2022
@welcome
Copy link

welcome bot commented Jun 30, 2022

Congrats on your first merged pull request in this project! 🎉
congrats

Thank you for contributing, we are very proud of you! ❤️

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.

2 participants