-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5676 from kiva/MP-1045-fe-remove-extra-whitespace…
…-around-badge-icons-in-my-kiva-hero-badge fix: adjust spacing and sizing in badge tile for MyKiva
- Loading branch information
Showing
2 changed files
with
46 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import BadgeTile from '#src/components/MyKiva/BadgeTile.vue'; | ||
import { | ||
badgeWomensEquality, | ||
badgeUsEconomicEquality, | ||
badgeClimateAction, | ||
badgeRefugeeEquality, | ||
badgeBasicNeeds, | ||
} from '../mock-data/badge-journey-data-mock'; | ||
|
||
export default { | ||
title: 'MyKiva/Badge Tile', | ||
component: BadgeTile, | ||
}; | ||
|
||
const story = (args) => { | ||
const template = (_args, { argTypes }) => ({ | ||
props: Object.keys(argTypes), | ||
components: { BadgeTile }, | ||
setup() { return { args }; }, | ||
template: ` | ||
<div class="tw-bg-secondary tw-p-4"> | ||
<BadgeTile v-bind="args" /> | ||
</div> | ||
`, | ||
}); | ||
template.args = args; | ||
return template; | ||
}; | ||
|
||
export const WomensEquality = story({ badgesData: [badgeWomensEquality] }); | ||
|
||
export const UsEconomicEquality = story({ badgesData: [badgeUsEconomicEquality] }); | ||
|
||
export const ClimateAction = story({ badgesData: [badgeClimateAction] }); | ||
|
||
export const RefugeeEquality = story({ badgesData: [badgeRefugeeEquality] }); | ||
|
||
export const BasicNeeds = story({ badgesData: [badgeBasicNeeds] }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters