Skip to content

Commit

Permalink
Merge pull request #2089 from tf/gallery-scroll-button-size
Browse files Browse the repository at this point in the history
Add theme property for image gallery scroll button size
  • Loading branch information
tf authored Mar 14, 2024
2 parents a019f5c + 6eb66bd commit 1d98f64
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@ elements etc.
| `text_block_first_list_item_margin_top` | Space before first item of lists. |
| `text_block_list_item_margin_top` | Space before second and following items of lists. |

### Image Gallery

| Name | Description |
| ---- | ----------- |
| `image_gallery_scroll_button_size` | Size of the scroll buttons displayed on the left and right of the image gallery. |

### Shared Widget Colors

Surfaces use colors from specific categories in your color palette,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@

.button svg {
transition: transform 0.2s ease;
display: block;
width: var(--theme-image-gallery-scroll-button-size);
height: var(--theme-image-gallery-scroll-button-size);
}

.button:not(.disabled):hover svg,
Expand All @@ -23,7 +26,6 @@
}

.icon {
display: inline-block;
position: relative;
transition: opacity 0.2s linear;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,17 @@ storiesOfContentElement(module, {
}
]
},
inlineFileRights: true
inlineFileRights: true,
variants: [
{
name: 'Custom scroll button size',
themeOptions: {
properties: {
root: {
imageGalleryScrollButtonSize: '60px'
}
}
}
}
]
});

0 comments on commit 1d98f64

Please sign in to comment.