Fix TextLink component
This commit is contained in:
parent
1995f507a0
commit
f9ca488dd6
5 changed files with 20 additions and 13 deletions
5
.changeset/dry-pears-camp.md
Normal file
5
.changeset/dry-pears-camp.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
"saleor-app-search": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fixed how TextLink is displayed - added missing space between spans
|
5
.changeset/weak-avocados-care.md
Normal file
5
.changeset/weak-avocados-care.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
"@saleor/apps-ui": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fixed TextLink color and style
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -9,17 +9,14 @@ export interface TextLinkProps extends TextProps {
|
||||||
|
|
||||||
const BaseTextLink = (props: TextLinkProps) => {
|
const BaseTextLink = (props: TextLinkProps) => {
|
||||||
return (
|
return (
|
||||||
|
<Text target="_blank" as={"a"} textDecoration={"none"} rel="noopener noreferrer" {...props}>
|
||||||
<Text
|
<Text
|
||||||
target="_blank"
|
transition={"ease"}
|
||||||
as={"a"}
|
|
||||||
textDecoration={"underline"}
|
|
||||||
variant={"bodyStrong"}
|
variant={"bodyStrong"}
|
||||||
rel="noopener noreferrer"
|
color={{
|
||||||
{...props}
|
default: "text3Decorative",
|
||||||
>
|
hover: "text1Decorative",
|
||||||
<Text
|
}}
|
||||||
__margin={0}
|
|
||||||
color={"text2Decorative"} /* TODO Color not applied - looks like Macaw issue*/
|
|
||||||
>
|
>
|
||||||
{props.children}
|
{props.children}
|
||||||
</Text>
|
</Text>
|
||||||
|
|
Loading…
Reference in a new issue