-
Notifications
You must be signed in to change notification settings - Fork 39
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
Implemented title option for BannerImage plugin #572
Implemented title option for BannerImage plugin #572
Conversation
Implemented the option to choose if the title of the Banner Image should stay on the top, on the bottom, or on the center. Previously, the title would always be placed in the center of the Image.
We are asking the user to pass if they want the text to be placed on the top or on the bottom of the image (center is the default). Therefore, align-items is passed on the style on the and, because of that, this property was removed from the .
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.
Nice @izzy-el - this looks almost ready to merge 🎉 One small comment below, and perhaps add a short changelog entry in ./CHANGELOG.md
?
Implemented a try-except block for catching a KeyError and replaced the if statement by a constant dictionary.
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.
Great @izzy-el - thanks for the contribution 🎉 We will include this in the upcoming pre-release and release.
Thank you! I appreciate it! |
Users can now specify if they want the image to be placed on the top or on the bottom of the BannerImage (center is the default). This is done by the css property
align-items
.Contributor checklist
align-items
property on_banner_image.py
.align-items
fromwebviz_config.css
.CHANGELOG.md
, and added it if should be communicated there.