diff --git a/bedrock/base/templates/macros-m24.html b/bedrock/base/templates/macros-m24.html index f46e6f2bf0f..9dd41104b07 100644 --- a/bedrock/base/templates/macros-m24.html +++ b/bedrock/base/templates/macros-m24.html @@ -5,20 +5,23 @@ #} {# - Grid Tile - HTML Import: {% from "macros-m24.html" import grid_tile with context %} + Gallery Tile + HTML Import: {% from "macros-m24.html" import gallery_tile with context %} CSS Import: @import '[path to]/m24/grid'; Macro Parameters: class: String providing modifier class(es) to the tile component. cta_text: String indicating CTA text (usually a translation id wrapped in an ftl function). desc: String indicating paragraph text (usually a translation id wrapped in ftl function). heading_level: Number indicating heading level for title text. Should be based on semantic meaning, not presentational styling. - image: Image to be used in the tile. Can pass an element, resp_img or picture Python helpers. + image_desktop: Image to be used in the tile at desktop sizes. Can pass an element, resp_img or picture Python helpers. + image_mobile: Image to be used in the tile at desktop sizes. Can pass an element, resp_img or picture Python helpers. link_attributes: A generic parameter to add any extra attributes to the CTA link, such as target, rel, or data attributes for GA tracking. Note that the quotes will pass through unescaped. link_url (Required): String or url helper function provides href value for the tile link. + tag: A category tag for this gallery tile (e.g. product, program, event) (usually a translation id wrapped in ftl function). + tag_icon: (Do not translate) Last word of the icon class. Must be configured in the CSS. Currently supports: product, program, event. title (Required): String indicating heading text (usually a translation id wrapped in ftl function). #} -{% macro grid_tile( +{% macro gallery_tile( class=None, cta_text=None, desc=None, @@ -26,25 +29,37 @@ image=None, link_attributes=None, link_url=None, + tag='', + tag_icon=None, title='' ) -%} -