Skip to content

Commit

Permalink
Set custom width for the carousel grid
Browse files Browse the repository at this point in the history
  • Loading branch information
dzole0311 committed Nov 15, 2024
1 parent e24f66e commit 3fcc29a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions overrides/home/carousel/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,12 @@
&--title {
font-size: 1.25rem;
}
}

.carousel-grid-container {
// Overriding the default max-width of the USWDS grid container 1440px.
// However, this needs to be configured on a per instance basis as a part of
// the USWDS settings configuration file. Since we're not exporting yet this
// config file from the veda-ui, we're setting this here as a workaround.
max-width: 1440px;
}
2 changes: 1 addition & 1 deletion overrides/home/carousel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function DesktopCarousel () {


return (
<GridContainer aria-roledescription="carousel" aria-label="Highlighted VEDA Dashboard projects">
<GridContainer className="carousel-grid-container" aria-roledescription="carousel" aria-label="Highlighted VEDA Dashboard projects">
<Grid row className="position-relative carousel--height" aria-live="off">
<TransitionGroup>
<CSSTransition
Expand Down

0 comments on commit 3fcc29a

Please sign in to comment.