Add 's' method to access theme props (#5163)

This commit is contained in:
Tom Moor
2023-04-07 22:43:34 -04:00
committed by GitHub
parent c202198d61
commit 422bdc32d9
116 changed files with 482 additions and 388 deletions

View File

@@ -4,6 +4,7 @@ import { OpenIcon } from "outline-icons";
import * as React from "react";
import styled from "styled-components";
import { Optional } from "utility-types";
import { s } from "../../styles";
type Props = Omit<Optional<HTMLIFrameElement>, "children"> & {
src?: string;
@@ -121,7 +122,7 @@ const Rounded = styled.div<{
`;
const Open = styled.a`
color: ${(props) => props.theme.textSecondary} !important;
color: ${s("textSecondary")} !important;
font-size: 13px;
font-weight: 500;
align-items: center;
@@ -141,8 +142,8 @@ const Bar = styled.div`
display: flex;
align-items: center;
border-top: 1px solid ${(props) => props.theme.embedBorder};
background: ${(props) => props.theme.secondaryBackground};
color: ${(props) => props.theme.textSecondary};
background: ${s("secondaryBackground")};
color: ${s("textSecondary")};
padding: 0 8px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;