Skip to content

Commit

Permalink
Remove bordered card style
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremysteerio committed Dec 11, 2024
1 parent 7acf618 commit 193ca99
Show file tree
Hide file tree
Showing 13 changed files with 9 additions and 20 deletions.
2 changes: 1 addition & 1 deletion dist/css/styles.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/district-and-project-search.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/health-station-search.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/job-search.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/linkedevents.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/maternity-and-child-health-clinic-search.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/news-archive.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/school-search.min.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/js/react/apps/linkedevents/components/ResultCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const getCardTags = ({ keywords, currentLanguage }: KeywordsForLanguage ) => key

function ResultCard({ end_time, id, location, name, keywords=[], start_time, images, offers }: Event) {
const { currentLanguage } = drupalSettings.path;
const { baseUrl, imagePlaceholder, useBorderedCards } = drupalSettings.helfi_events;
const { baseUrl, imagePlaceholder } = drupalSettings.helfi_events;
const url = `${baseUrl}/${currentLanguage}/events/${id}`;

const resolvedName = name?.[currentLanguage] || name?.fi || Object.values(name)[0] || '';
Expand Down Expand Up @@ -125,7 +125,6 @@ function ResultCard({ end_time, id, location, name, keywords=[], start_time, ima
location={isRemote ? 'Internet' : getLocation()}
time={getDate()}
registrationRequired={getOffers()}
useBorderedCards={useBorderedCards}
/>
);
}
Expand Down
2 changes: 0 additions & 2 deletions src/js/react/common/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,11 @@ function CardItem({
weightedEducation,
languageEducation,
registrationRequired,
useBorderedCards,
}: CardItemProps): JSX.Element {
const cardClass = `
card
${cardModifierClass ? ` ${cardModifierClass}` : ''}
${cardUrlExternal ? ' card--external' : ''}
${useBorderedCards ? ' card--bordered' : ''}
`;
const HeadingTag = cardTitleLevel ? `h${cardTitleLevel}` as keyof JSX.IntrinsicElements : 'h3';

Expand Down
1 change: 0 additions & 1 deletion src/js/types/drupalSettings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ declare namespace drupalSettings {
}
},
seeAllButtonOverride: string,
useBorderedCards: boolean,
useExperimentalGhosts: boolean,
};
const helfi_react_search: {
Expand Down
6 changes: 0 additions & 6 deletions src/scss/05_objects/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ $item-gap: $spacing-half;

.card {
background: $color-white;
border: 2px solid transparent;
overflow-wrap: anywhere;
padding: $spacing;
position: relative;
Expand All @@ -29,11 +28,6 @@ $item-gap: $spacing-half;

.card--ghost {
background: $color-black-20;
border: none;
}

.card--bordered {
border: 2px solid $color-black-20;
}

.card__image {
Expand Down
1 change: 0 additions & 1 deletion src/scss/06_components/paragraphs/_react-search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

.react-search__list-container {
margin-bottom: $spacing-double;
scroll-behavior: smooth;
}

.react-search__list-container.loading .card {
Expand Down

0 comments on commit 193ca99

Please sign in to comment.