Added blocklyImageField CSS class to image fields #8439
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue -> #8314
fixes #8314
Description :
This pull request introduces a change to the
FieldImage
class in Blockly to enhance the styling capabilities of image fields. By adding theblocklyImageField
CSS class to thefieldGroup_
element, developers can now apply custom styles more easily to image fields within Blockly.Changes Made :
initView
method incore/field_image.ts
to calldom.addClass
withthis.fieldGroup_
and'blocklyImageField'
.Details:
The
initView
method has been updated to ensure that theblocklyImageField
CSS class is applied to thefieldGroup_
element whenever an image field is initialized. This addition enhances the flexibility for developers to customize the appearance of image fields using CSS.Branch :
rc/v12.0.0
branch.By adding the
blocklyImageField
class, developers can now easily apply CSS styles specific to image fields, enhancing the visual customization options available in Blockly.