Add 's' method to access theme props (#5163)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user