Skip to content

Commit

Permalink
clarifying story names for hero components
Browse files Browse the repository at this point in the history
  • Loading branch information
stephiescastle committed Jul 17, 2024
1 parent 3d8cc33 commit c3dcbee
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apps/vue-storybook/.storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const preview: Preview = {
'Blocks',
['Overview', 'Heroes', ['Overview', 'Small', 'Medium', 'Large']],
'Heroes',
['Overview', 'HeroSmall', 'HeroMedium', 'HeroLarge', 'HeroMedia', 'HeroListingIndex'],
['Overview', 'Small', 'Medium', 'Large', 'Media Only', 'HeroListingIndex'],
'Forms',
['Overview', 'TextInput', 'TextArea'],
'Search',
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/src/components/HeroLarge/HeroLarge.stories.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import HeroLarge from './HeroLarge.vue'

export default {
title: 'Components/Heroes/HeroLarge',
title: 'Components/Heroes/Large',
component: HeroLarge,
excludeStories: /.*Data$/,
parameters: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import HeroListingIndex from './HeroListingIndex.vue'

export default {
title: 'Components/Heroes/HeroListingIndex',
title: 'Components/Heroes/For Listing Pages',
component: HeroListingIndex,
parameters: {
viewMode: 'canvas'
Expand Down Expand Up @@ -38,6 +38,7 @@ export const HeroListingIndexData = {
// templates

export const BaseStory = {
name: 'HeroListingIndex',
args: {
customLabel: 'Featured',
pageData: HeroListingIndexData.listingPage
Expand Down
4 changes: 2 additions & 2 deletions packages/vue/src/components/HeroMedia/HeroMedia.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { BaseVideoData } from './../BaseVideo/BaseVideo.stories'
import HeroMedia from './HeroMedia.vue'

export default {
title: 'Components/Heroes/HeroMedia',
title: 'Components/Heroes/Media Only',
component: HeroMedia,
parameters: {
html: {
Expand Down Expand Up @@ -79,7 +79,7 @@ export const HeroMediaData = {

// stories
export const BaseStory = {
name: 'Hero',
name: 'HeroMedia',
args: HeroMediaData
}
export const CustomImageCaption = {
Expand Down
3 changes: 2 additions & 1 deletion packages/vue/src/components/HeroMedium/HeroMedium.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { BaseVideoData } from './../BaseVideo/BaseVideo.stories'
import HeroMedium from './HeroMedium.vue'

export default {
title: 'Components/Heroes/HeroMedium',
title: 'Components/Heroes/Medium',
component: HeroMedium,
decorators: [
() => ({
Expand Down Expand Up @@ -55,6 +55,7 @@ export const HeroMediumData = {
}

export const BaseStory = {
name: 'HeroMedium',
args: {
customTag: 'News',
customLabel: HeroMediumData.label,
Expand Down
3 changes: 2 additions & 1 deletion packages/vue/src/components/HeroMedium/HeroSmall.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { HeroMediumData } from './HeroMedium.stories'
import HeroMedium from './HeroMedium.vue'

export default {
title: 'Components/Heroes/HeroSmall',
title: 'Components/Heroes/Small',
component: HeroMedium,
decorators: [
() => ({
Expand Down Expand Up @@ -36,6 +36,7 @@ export default {
}

export const BaseStory = {
name: 'HeroMedium (compact)',
args: {
customTag: 'News',
customLabel: HeroMediumData.label,
Expand Down

0 comments on commit c3dcbee

Please sign in to comment.