Skip to content

Commit

Permalink
add alttext to content
Browse files Browse the repository at this point in the history
  • Loading branch information
Petter Andersson committed Feb 3, 2025
1 parent 2f224a7 commit 9b9e2d2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/content/content.gql.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const contentGqlSchema = /* GraphQL */ `
border: String
background: String
image: String
alt: String
position: String
width: String
categories: String
Expand All @@ -52,6 +53,7 @@ export const contentGqlSchema = /* GraphQL */ `
border: String
background: String
image: String
alt: String
position: String
width: String
categories: String
Expand Down
1 change: 1 addition & 0 deletions src/content/content.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ it('should normalize invalid composition', () => {
border: 'true',
background: '',
image: '',
alt: '',
width: '100%',
position: 'top',
categories: '',
Expand Down
1 change: 1 addition & 0 deletions src/content/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const createEmptyModule = (): ContentModule => ({
border: 'true',
background: '',
image: '',
alt: '',
position: 'top',
width: '100%',
categories: '',
Expand Down
1 change: 1 addition & 0 deletions src/content/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export type ContentModule = {
border: 'true' | 'false'
background: string
image: string
alt: string
position: 'top' | 'bottom' | 'left' | 'right'
width: string
categories: string
Expand Down

0 comments on commit 9b9e2d2

Please sign in to comment.