8000 fix: update applyColour documentation by maribethb · Pull Request #6998 · google/blockly · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: update applyColour documentation #6998

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

Merged
merged 1 commit into from
Apr 24, 2023
Merged

Conversation

maribethb
Copy link
Contributor

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide
  • I ran npm run format and npm run lint

The details

Resolves

Missing documentation from reference pages.

Proposed Changes

  • Removes @internal tag from applyColour methods in fields. This method is not @internal because it can be overridden by subclasses. Therefore it should appear in our documentation.
  • Updates the TsDoc for the method to add more information.
  • Removes the statement that it should only be called by BlockSvg.applyColour because this method is already called by input.ts as well plus FieldDropdown calls its own method several times, and this makes sense, because you only want to update that kind of style information in one method, so it's a pattern other fields might follow.

Behavior Before Change

Behavior After Change

Reason for Changes

Test Coverage

Documentation

Additional Information

@maribethb maribethb requested a review from a team as a code owner April 20, 2023 21:12
@maribethb maribethb requested a review from NeilFraser April 20, 2023 21:12
@github-actions github-actions bot added the PR: fix Fixes a bug label Apr 20, 2023
@BeksOmega
Copy link
Collaborator

FieldDropdown calls this method in its dispose method, is that weird? If we're disposing the element I don't know why we'd also be updating some (now-irrelevant) styles on it but I didn't look too deeply into this as I'm not making any code changes here

I have no idea why it would be doing that. Added here: c868a86#diff-8bc430f306f183ee3e55aa995c55063f906fe1ac043571db11d15b67566c3012R329

@maribethb maribethb merged commit bf8be1a into google:develop Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: fix Fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0