Fix TextLink component

This commit is contained in:
Lukasz Ostrowski 2023-05-17 18:53:49 +02:00
parent 1995f507a0
commit f9ca488dd6
5 changed files with 20 additions and 13 deletions

View file

@ -0,0 +1,5 @@
---
"saleor-app-search": patch
---
Fixed how TextLink is displayed - added missing space between spans

View file

@ -0,0 +1,5 @@
---
"@saleor/apps-ui": patch
---
Fixed TextLink color and style

View file

@ -15,10 +15,10 @@ export const MainInstructions = ({ children, ...props }: PropsWithBox<{}>) => {
Saleor database. Saleor database.
</Text> </Text>
<Text as="p"> <Text as="p">
The app supports following The app supports following{" "}
<TextLink href={SALEOR_EVENTS_DOCS_URL} newTab> <TextLink href={SALEOR_EVENTS_DOCS_URL} newTab>
events events
</TextLink> </TextLink>{" "}
that will synchronize Algolia in the background: that will synchronize Algolia in the background:
</Text> </Text>
<ul> <ul>

View file

@ -37,7 +37,7 @@ export const ConfigurationView = () => {
Provide Algolia settings.{" "} Provide Algolia settings.{" "}
</Text> </Text>
<Text> <Text>
You can find your tokens in Algolia Dashboard You can find your tokens in Algolia Dashboard{" "}
<TextLink href={ALGOLIA_DASHBOARD_TOKENS_URL} newTab> <TextLink href={ALGOLIA_DASHBOARD_TOKENS_URL} newTab>
here here
</TextLink> </TextLink>

View file

@ -9,17 +9,14 @@ export interface TextLinkProps extends TextProps {
const BaseTextLink = (props: TextLinkProps) => { const BaseTextLink = (props: TextLinkProps) => {
return ( return (
<Text <Text target="_blank" as={"a"} textDecoration={"none"} rel="noopener noreferrer" {...props}>
target="_blank"
as={"a"}
textDecoration={"underline"}
variant={"bodyStrong"}
rel="noopener noreferrer"
{...props}
>
<Text <Text
__margin={0} transition={"ease"}
color={"text2Decorative"} /* TODO Color not applied - looks like Macaw issue*/ variant={"bodyStrong"}
color={{
default: "text3Decorative",
hover: "text1Decorative",
}}
> >
{props.children} {props.children}
</Text> </Text>