Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small update to SecondaryButton and Card #691

Merged
merged 1 commit into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
.secondaryButton {
border: 1px solid var(--lhds-color-ui-400);
border: 1px solid var(--lhds-color-blue-600);
background-color: var(--swui-white);
color: var(--swui-text-action-color);

&:hover {
background-color: var(--lhds-color-blue-50);
border: 1px solid var(--lhds-color-blue-400);
border: 1px solid var(--lhds-color-blue-600);
}

&:focus-visible {
Expand Down
31 changes: 23 additions & 8 deletions packages/elements/src/components/ui/card/Card.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { faCreditCard } from "@fortawesome/free-solid-svg-icons/faCreditCard";
import { faJedi } from "@fortawesome/free-solid-svg-icons/faJedi";
import {
Box,
Column,
Heading,
Indent,
Row,
Expand Down Expand Up @@ -41,14 +42,28 @@ export default {

export const Demo = () => {
return (
<Card>
<CardHeader text={"Overview"} />
<CardBody>
<Heading variant={"h5"}>Subheader</Heading>
<Space />
<Text>Lorem ipsavablasfasofofa</Text>
</CardBody>
</Card>
<Column gap={4}>
<Column indent={4} spacing={4}>
<Card>
<CardHeader text={"Overview"} />
<CardBody>
<Heading variant={"h5"}>Subheader</Heading>
<Space />
<Text>Lorem ipsavablasfasofofa</Text>
</CardBody>
</Card>
</Column>
<Column indent={4} spacing={4} background={cssColor("--silver-lighter")}>
<Card>
<CardHeader text={"Overview"} />
<CardBody>
<Heading variant={"h5"}>Subheader</Heading>
<Space />
<Text>Lorem ipsavablasfasofofa</Text>
</CardBody>
</Card>
</Column>
</Column>
);
};

Expand Down
4 changes: 2 additions & 2 deletions packages/theme/src/styles/default-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@
--swui-shadow-modal: rgba(0, 0, 0, 0.2) 0px 0px 10px 4px;
--swui-shadow-popover: 0 2px 4px -1px rgba(20, 62, 98, 0.15),
0 1px 10px 0 rgba(0, 0, 0, 0.12);
--swui-shadow-box: 0 3px 1px -2px rgba(0, 0, 0, 0.12),
0 0 4px 0 rgba(20, 62, 98, 0.15);
--swui-shadow-box: 0 3px 1px -2px rgba(0, 0, 0, 0.15),
0 0 4px 0 rgba(0, 0, 0, 0.15);
--swui-shadow-bottom: rgba(0, 0, 0, 0.2) 0 5px 5px -4px;

/* Metrics */
Expand Down