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.
|
||||
</Text>
|
||||
<Text as="p">
|
||||
The app supports following
|
||||
The app supports following{" "}
|
||||
<TextLink href={SALEOR_EVENTS_DOCS_URL} newTab>
|
||||
events
|
||||
</TextLink>
|
||||
</TextLink>{" "}
|
||||
that will synchronize Algolia in the background:
|
||||
</Text>
|
||||
<ul>
|
||||
|
|
|
@ -37,7 +37,7 @@ export const ConfigurationView = () => {
|
|||
Provide Algolia settings.{" "}
|
||||
</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>
|
||||
here
|
||||
</TextLink>
|
||||
|
|
|
@ -9,17 +9,14 @@ export interface TextLinkProps extends TextProps {
|
|||
|
||||
const BaseTextLink = (props: TextLinkProps) => {
|
||||
return (
|
||||
<Text
|
||||
target="_blank"
|
||||
as={"a"}
|
||||
textDecoration={"underline"}
|
||||
variant={"bodyStrong"}
|
||||
rel="noopener noreferrer"
|
||||
{...props}
|
||||
>
|
||||
<Text target="_blank" as={"a"} textDecoration={"none"} rel="noopener noreferrer" {...props}>
|
||||
<Text
|
||||
__margin={0}
|
||||
color={"text2Decorative"} /* TODO Color not applied - looks like Macaw issue*/
|
||||
transition={"ease"}
|
||||
variant={"bodyStrong"}
|
||||
color={{
|
||||
default: "text3Decorative",
|
||||
hover: "text1Decorative",
|
||||
}}
|
||||
>
|
||||
{props.children}
|
||||
</Text>
|
||||
|
|
Loading…
Reference in a new issue