Skip to content

Commit

Permalink
docs: adapt docs to new elevation tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidalgarcia committed Aug 13, 2024
1 parent 7aaa18c commit 9fac003
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/src/components/Bookmarks/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const tileMixin = css`
border-radius: 16px;
box-sizing: border-box;
padding: ${theme.orbit.spaceXLarge};
box-shadow: ${theme.orbit.boxShadowAction};
box-shadow: ${theme.orbit.elevationLevel1BoxShadow};
> div {
height: 100%;
margin-right: ${theme.orbit.spaceXSmall};
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/DocLayout/TopBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const TopBar = ({
? { top: "none", bottom: "XLarge", left: "XLarge", right: "XLarge" }
: { top: "XLarge", bottom: "XXLarge", left: "XLarge", right: "XLarge" }
}
elevation={noElevation ? undefined : "raised"}
elevation={noElevation ? undefined : "level3"}
>
{children}
</StyledProse>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/Palette/ColorContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const StyledColorContainerWrapper = styled(({ className, children }) => (
:focus,
:active {
transform: scale(1.01);
box-shadow: ${theme.orbit.boxShadowRaised};
box-shadow: ${theme.orbit.elevationLevel3BoxShadow};
${StyledCopyWrapper} {
visibility: visible;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const StyledCell = styled.button.attrs({ type: "button" })<{
}
&:focus {
outline: none;
box-shadow: ${theme.orbit.boxShadowFixed};
box-shadow: ${theme.orbit.elevationFixedBoxShadow};
}
`}
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import styled from "styled-components";
const StyledInputContainer = styled.div`
display: flex;
position: relative;
box-shadow: ${({ theme }) => theme.orbit.boxShadowAction};
box-shadow: ${({ theme }) => theme.orbit.elevationLevel1BoxShadow};
padding: 10px 1.5em;
border-radius: 100px;
flex-direction: row;
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/Tabs/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import mediaQueries from "../MediaQueries";

export const TAB_HEIGHT = "64px";
export const BORDER_RADIUS = "12px";
export const TAB_ACTIVE_SHADOW_TOKEN = "boxShadowRaised";
export const TAB_ACTIVE_SHADOW_TOKEN = "elevationLevel3BoxShadow";
export const FULL_WIDTH_BREAKPOINT: keyof typeof mediaQueries = "largeMobile";

0 comments on commit 9fac003

Please sign in to comment.