Skip to content

Add ability to build responsive image styles in style guide#982

Open
dipakmdhrm wants to merge 2 commits intomainfrom
981-style-guide-responsive-images
Open

Add ability to build responsive image styles in style guide#982
dipakmdhrm wants to merge 2 commits intomainfrom
981-style-guide-responsive-images

Conversation

@dipakmdhrm
Copy link
Collaborator

#981

Update:

  • Add ability to build responsive image styles in style guide
    • Use breakpoints from server_theme
Mobile Tablet Desktop
1 2 3

@dipakmdhrm dipakmdhrm force-pushed the 981-style-guide-responsive-images branch from 44e1ce5 to 08472dc Compare January 30, 2026 11:53
@dipakmdhrm dipakmdhrm force-pushed the 981-style-guide-responsive-images branch from 08472dc to 8dba918 Compare January 30, 2026 11:56
* @return array
* A render array for a <picture> element.
*/
private function buildResponsiveImage(array $image_dimensions, string $id = '', string $id_type = 'id', string $alt = ''): array {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • string should normally be replaced with an enum
  • Can we call an actual responsive image, like used in the Themetrits / PEVB, instead of building one ourselves?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants