diff --git a/CHANGELOG.mdx b/CHANGELOG.mdx index b0fe45c7e..cbc0348b0 100644 --- a/CHANGELOG.mdx +++ b/CHANGELOG.mdx @@ -41,8 +41,12 @@ Prefix the change with one of these keywords: - Icon: restricted to only black, red, white and light grey - Icon Cards: restricted to red icons, removed shadow and bg colors - Icon Cards: fixed width and height for icons inside container -- Pagination: active text changed to red +- Listings: removed button color options in footer subcomponent, restricted to red +- Listings: updated card styles - Nav: space between logo and site title +- Pagination: active text changed to red +- Stacked List: removed border option +- Stacked List: updated max width query sizes when offset used - Text and Image: header always has underline - Wide Image: opacity range set at 60-80 @@ -53,6 +57,7 @@ Prefix the change with one of these keywords: ### Fixed +- Stacked List: bottom border on odd / even items - Pagination: accessibility error relating to role="presentation" ## [0.9.6] diff --git a/lib/components/Card/CardPeopleMeta.tsx b/lib/components/Card/CardPeopleMeta.tsx index d8ec5785f..3696cace2 100644 --- a/lib/components/Card/CardPeopleMeta.tsx +++ b/lib/components/Card/CardPeopleMeta.tsx @@ -10,7 +10,7 @@ export const CardPeopleMeta = ({ jobTitle, children, phone }: CardPeopleMetaProp {jobTitle &&
- {text.length > 170 ? `${text.substring(0, 170)}...` : text} + {text.length > 200 ? `${text.substring(0, 200)}...` : text} {hasMore && More}
) diff --git a/lib/components/Listing/ListingFooter.tsx b/lib/components/Listing/ListingFooter.tsx index d2d2d2f22..0417da39a 100644 --- a/lib/components/Listing/ListingFooter.tsx +++ b/lib/components/Listing/ListingFooter.tsx @@ -1,20 +1,9 @@ export interface ListingFooterProps { children: React.ReactNode - isType?: 'button' | 'badge' - buttonType?: 'solid' | 'outline' - buttonStyle?: 'red' | 'white' | 'dark-grey' | 'grey' } -export const ListingFooter = ({ children, isType, buttonType = 'solid', buttonStyle = 'red' }: ListingFooterProps) => { - const buttonClass = isType === 'button' ? `cu-card-button` : '' - const buttonTypeClass = isType === 'button' && buttonType ? `cu-card-button-${buttonType}` : 'cu-card-button-solid' - const buttonStyleClass = isType === 'button' && buttonStyle ? `cu-card-button-${buttonStyle}` : 'cu-card-button-red' - - return ( - - ) +export const ListingFooter = ({ children }: ListingFooterProps) => { + return } ListingFooter.displayName = 'Listing.Footer' diff --git a/lib/components/Listing/ListingIconThumb.tsx b/lib/components/Listing/ListingIconThumb.tsx index e0c2d20b0..9a3c71359 100644 --- a/lib/components/Listing/ListingIconThumb.tsx +++ b/lib/components/Listing/ListingIconThumb.tsx @@ -1,52 +1,23 @@ export interface ListingIconThumbProps { icon?: string - bgType?: 'none' | 'red' | 'white' - hasShadow?: boolean } -export const ListingIconThumb = ({ icon, bgType = 'red', hasShadow }: ListingIconThumbProps) => { +export const ListingIconThumb = ({ icon }: ListingIconThumbProps) => { const cdnPath = 'https://cdn.carleton.ca/rds/assets/font-awesome/' const iconPath = `${cdnPath}${icon}.svg` - const iconShadow = hasShadow ? 'shadow-md' : '' - - // Set classes on icon and wrapping div - let iconDiv - - switch (bgType) { - case 'none': - iconDiv = 'w-10 h-10' - break - case 'red': - iconDiv = 'w-16 h-16 bg-cu-red rounded-md' - break - case 'white': - iconDiv = 'w-16 h-16 bg-white rounded-md' - break - default: - iconDiv = '' - break - } - - // Use filter to change svg as image to white - const whiteIcon = { - filter: 'invert(100%) sepia(5%) saturate(0%) hue-rotate(29deg) brightness(106%) contrast(107%)', - } + const iconAlt = icon ? icon.replace(/-/g, ' ') : '' - // Use filter to change svg as image to red const redIcon = { filter: 'invert(20%) sepia(50%) saturate(7177%) hue-rotate(348deg) brightness(91%) contrast(100%)', } - // Remove dashes from icon name - const iconAlt = icon ? icon.replace(/-/g, ' ') : '' - return ( -