-
Notifications
You must be signed in to change notification settings - Fork 25
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
Kuwait Theme: Add Background Image to Display Group #2589
base: master
Are you sure you want to change the base?
Conversation
…pp-builder into feature-add-image-attribute-to-display-group
@jfmcquade I tested the concept of adding a |
Thanks for looking into it. Does it not work with |
…pp-builder into feature-add-image-attribute-to-display-group
Oh, I was using this format: |
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 think the background image options look good.
The changes to the box_primary
etc. variants should be pulled into a separate PR I think. I'm not sure whether we want to overwrite the box_*
variants for the KW theme or offer new variants. Presumably we're not planning on using the default box_*
stylings and so overwriting them may make sense, perhaps @esmeetewinkel can confirm.
Would be good to have those changes broken out into a separate PR for that reason, but if we're sure we're happy to override then they can stay with this PR, but the title and description should be updated.
…pp-builder into feature-add-image-attribute-to-display-group
Visit the preview URL for this PR (updated for commit f27841b): https://plh-teens-app1--pr2589-feature-add-image-at-yeengskb.web.app (expires Mon, 13 Jan 2025 17:22:15 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: e4c0bab6b08dd290fbf002fd6e07987fa4b5fce1 |
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'm struggling a little to understand from the PR description how the different parameters (are intended to) work.
Clarifications:
-
I'm understanding that
background_image_position
can be one of top / center / bottom (vertical position), but can also contain left / right (horizontal position). Default is top + horizontally centred. If this is correct can this be added tot he PR description? -
The description of
style: background_solid
in the PR notes is cut off. This seems to be the default - I don't observe any difference when I do / don't include this parameter. I don't understand how to achieve a transparent background, as in the design:
Bugs:
-
When the
background_image_position
is set totop right
the image doesn't remain glued to the top on narrow screens.Screenity.video.-.Dec.18.2024.1.mp4
-
The
background_image_position
left / right should flip in RTL and the background image should be flipped.
Current view in RTL:
-
On some screen ratios (e.g. Moto G4 and Samsung Galaxy S8+) I'm seeing a faint blue line underneath the image
-
I also found [BUG] RTL title alignment #2640, but tracked it separately since it's independent of this PR
…pp-builder into feature-add-image-attribute-to-display-group
PR Checklist
Description
Adds a
background_image_asset
tofeature_display_group
component. LinkAlso includes display group styling according to the Kuwait theme.
Author Notes
New parameter list:
background_image_asset
: Adds a background image to the display group.background_image_position
: Positions the background image (top, center, bottom). Defaulttop
Further additions
By @jfmcquade:
New display group variant,
inline-padding
sticky
set totop
orbottom
, there is no left or right padding around the content, as demonstrated in example_inline_header_footer:New
style
param value:background_solid
style: background_solid
on the display group means that the This was previously the default when setting a display group tosticky
(feat: inline header or footer, via 'sticky' display group param #2564), but we agreed that the stickiness should be independent of styles, so this style must now be used in order to prevent the display group from having a transparent background when settingsticky
.See examples in feature_display_group
Git Issues
Closes #2579
Screenshots