Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #601 from zarathustra323/4.x_leaders-image-dimensions
Browse files Browse the repository at this point in the history
Set default leaders header image dimensions
  • Loading branch information
zarathustra323 authored Feb 23, 2023
2 parents 1812ced + 6c4c492 commit 82d653c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
15 changes: 14 additions & 1 deletion packages/leaders-program/src/components/header.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
<template>
<div v-if="display" class="leaders__header">
<div v-if="imgSrc" class="leaders__header-image">
<img :src="imgSrc" :alt="imgAlt">
<img
:src="imgSrc"
:alt="imgAlt"
:width="imgWidth"
:height="imgHeight"
>
</div>
<div v-if="displayCallout" class="leaders__header-callout">
<div class="leaders__callout-prefix">
Expand Down Expand Up @@ -29,6 +34,14 @@ export default {
type: String,
default: null,
},
imgWidth: {
type: String,
default: '300',
},
imgHeight: {
type: String,
default: '90',
},
displayCallout: {
type: Boolean,
default: true,
Expand Down
10 changes: 10 additions & 0 deletions packages/leaders-program/src/components/leaders.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
:display="getResponsiveValue('displayHeader')"
:img-src="headerImgSrc"
:img-alt="headerImgAlt"
:img-width="headerImgWidth"
:img-height="headerImgHeight"
:display-callout="getResponsiveValue('displayCallout')"
:callout-prefix="calloutPrefix"
:callout-value="calloutValue"
Expand Down Expand Up @@ -129,6 +131,14 @@ export default {
type: String,
default: null,
},
headerImgWidth: {
type: String,
default: '300',
},
headerImgHeight: {
type: String,
default: '90',
},
displayCallout: {
type: Boolean,
default: true,
Expand Down

0 comments on commit 82d653c

Please sign in to comment.