-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
fix!: removed redundant blockyTreeRowContentContainer div #8373
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use -- conventional-commit-lint bot |
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.
Welcome! It looks like this is your first pull request in Blockly, so here are a couple of tips:
- You can find tips about contributing to Blockly and how to validate your changes on our developer site.
- All contributors must sign the Google Contributor License Agreement (CLA). If the google-cla bot leaves a comment on this PR, make sure you follow the instructions.
- We use conventional commits to make versioning the package easier. Make sure your commit message is in the proper format or learn how to fix it.
- If any of the other checks on this PR fail, you can click on them to learn why. It might be that your change caused a test failure, or that you need to double-check the style guide.
Thank you for opening this PR! A member of the Blockly team will review it soon.
core/toolbox/category.ts
Outdated
@@ -195,19 +191,15 @@ export class ToolboxCategory | |||
aria.setState(this.htmlDiv_, aria.State.LEVEL, this.level_ + 1); | |||
|
|||
this.rowDiv_ = this.createRowContainer_(); | |||
this.rowDiv_.style.pointerEvents = 'auto'; | |||
this.rowDiv_.style.pointerEvents = 'none'; |
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 makes it so the categories are no longer clickable :/ Could you test this manually using npm run start
and see if pointerEvents = 'none';
actually needs to be assigned anywhere or if we can remove it?
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.
Hey @BeksOmega I tested it in local machine using npm run start
and it was acting weirdly
and I think the blockyTreeRowContentContainer div is kinda required unless it is breaking
but we can remove the rowContents_ attributes from the ToolboxCategory class it is redundant...
if you can think of any implementation by which we can remove the blockyTreeRowContentContainer div you can comment I will try it out....
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.
Can you try having the rowDiv_.style.pointerEvents = 'auto'
while the iconDom_
and the labelDom_
have it set to none
? I think that might fix the issue.
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.
Hey @BeksOmega sorry for late reply to this... this week was a little busy ....
I have set the iconDom_ and labelDom_ pointerEvents to none and for the rowDiv_ to auto and it is working fine for me...
please review and suggest for changes if any needed.....
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 great! Once this passes CI I'll get this merged =)
Looks like this failed formatting. You can fix that by running |
Thank you again for your work on this! |
Ah actually this is also against the wrong branch :/ It needs to merge into |
I have not done rebase before |
Hello! To rebase onto the rc/v12.0.0 branch, you can follow these steps.
Once you've done this, the PR should be on the correct branch. Let me know if you have any questions or run into any issues! |
I have done the steps I hope it will work correctly... |
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 like some of the automated tests are failing. Could you look into why and fix them?
@deysandip301 Are you still interested in working on this? |
@BeksOmega Ya, I am working on this, although I am having some trouble while figuring out why some tests are failing. I have fixed the formatting issue, will push it in sometime but why some |
Sorry missed this yesterday. Were you able to run the tests locally with |
@deysandip301 Sorry this has been rough to try to get in! Are you still interested in working on this? |
I'm gonna go ahead and close this. If you want to continue working on it feel free to reopen! |
The basics
The details
Resolves
Fixes #8346
Proposed Changes
removed the extra attribute rowContents_ from ToolboxCategory class
and added the icons and lables of categories directly to the rowDiv_ attributes
Reason for Changes
the div blockyTreeRowContentContainer was redundant which was used to style but was not given css styling
Test Coverage
Documentation
Additional Information