Skip to content

Commit

Permalink
Update to use stylesheets instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewgisonno committed Apr 4, 2024
1 parent 36f6037 commit 9084da7
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
@import 'link-list';
@import 'rich-text';
@import 'people-grid';
@import 'speakers-grid';
@import 'icon-link-list';

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.people-grid-container {
&:not(.red-linear-gradient) {
color: #000;

& .person-job-role,
& .person-company {
color: #707070;
}
}
}

Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
@import 'red-linear-gradient';
@import 'people-grid-container';
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.speakers-grid-container {
& .person-job-role,
& .person-company {
color: #707070;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import 'speakers-grid-container';

Original file line number Diff line number Diff line change
Expand Up @@ -83,18 +83,10 @@ export const Default = (props: PersonProps): JSX.Element => {
<JssText field={props.fields.Name} />
</Heading>
)}
<Text
fontSize={props.isPeopleGrid ? '18px' : '16px'}
color={props.isPeopleGrid ? 'inherit' : 'sugcon.gray.500'}
mb={0}
>
<Text className="person-job-role" mb={0}>
<JssText field={props.fields.JobRole} />
</Text>
<Text
fontSize={props.isPeopleGrid ? '18px' : '16px'}
color={props.isPeopleGrid ? 'inherit' : 'sugcon.gray.500'}
mb="13px"
>
<Text className="person-company" mb="13px">
<JssText field={props.fields.Company} />
</Text>
{(isEditorActive() ||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const Default = (props: PeopleGridProps): JSX.Element => {
}

return (
<Box w="100%" mt={20} className={clsx(props?.params?.Styles)}>
<Box w="100%" mt={20} className={clsx('people-grid-container', props?.params?.Styles)}>
<LayoutFlex flexGrow="1" flexDirection="column" align="start">
<Heading as={JssText} field={props.fields.Headline} tag="h2" size="lg" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const Default = (props: PeopleGridProps): JSX.Element => {
}

return (
<Box w="100%" pr="0" pl="0" className={clsx(props?.params?.Styles)}>
<Box w="100%" pr="0" pl="0" className={clsx('speakers-grid-container', props?.params?.Styles)}>
<Heading as={JssText} field={props.fields.Headline} tag="h2" size="lg" />

<SimpleGrid
Expand Down

0 comments on commit 9084da7

Please sign in to comment.