-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Adds id to dcc.Loading DOM #2888
Conversation
Congrats on your first PR in an open-source project! 🎊 I forgot about raising the PR 😬 but happy that it lets you create your first PR! 👏 |
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.
I don't think we need to add new tests, but the existing ones could be modified to include an id here:
dash/components/dash-core-components/tests/integration/loading/test_loading_component.py
Line 23 in ba27733
dash_dcc.find_element(".loading .dash-spinner") |
@@ -148,6 +149,7 @@ const Loading = ({ | |||
{showSpinner && | |||
(custom_spinner || ( | |||
<Spinner | |||
id={id} |
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.
The id should be on the outer div, the spinners https://github.com/plotly/dash/blob/4692acf61f3e282950a8d1014b152176addb2aec/components/dash-core-components/src/fragments/Loading/spinners/ don't have the id prop so it wouldn't render on the DOM.
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.
Ah I see, good catch 😄
Changed in 9dcf243
Sounds good! Changed in ca5d66a |
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.
Looks good, thank you 💃
Hi!👋 This is my first time contributing to an open-source project. I hope it's okay if I give the issue (#2878) a try.
I didn't add a test as I was unsure if it was needed for this (small) change; however, I'd be more than happy to add one if needed!
Contributor Checklist
optionals
CHANGELOG.md