Skip to content

Commit

Permalink
fix(core); fixed styles for links in the step component (#973)
Browse files Browse the repository at this point in the history
* fix(core); fixed styles for links in the step component

* fix(core); fixed styles for links in the step component

* Create lazy-phones-cover.md

* Update lazy-phones-cover.md
  • Loading branch information
boyney123 authored Nov 26, 2024
1 parent aca2d15 commit bb4d278
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lazy-phones-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@eventcatalog/core": patch
---

fix(core): fixed styles for links in the step component
12 changes: 11 additions & 1 deletion src/components/MDX/Steps/Step.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const { title } = Astro.props;
---

<li class="mb-8 ml-6 w-full xl:max-w-[50%]">
<li class="mb-8 ml-6 w-full xl:max-w-[50%] step">
<div class="flex items-center mb-4">
<span class="step-number absolute flex items-center justify-center w-6 h-6 bg-primary/80 rounded-md -left-3 text-white">
<div></div>
Expand All @@ -23,3 +23,13 @@ const { title } = Astro.props;
});
});
</script>

<style is:global>
.step a {
color: #4b5563;
text-decoration: underline;
&:hover {
color: #b977f9;
}
}
</style>

0 comments on commit bb4d278

Please sign in to comment.