Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(link): added disabled fake-link #2508

Merged
merged 1 commit into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/tame-monkeys-sparkle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ebay/skin": minor
---

docs(link): added disabled fake-link
22 changes: 22 additions & 0 deletions src/modules/link.marko
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,28 @@
>
<button class="fake-link" type="button">Button</button>
</highlight-code>


<h3 id="link-fake">
Disabled Fake Link
</h3>
<p>
To disable a button styled to look like a link, use the disabled attribute.
</p>

<div class="demo">
<div class="demo__inner">
<button class="fake-link" disabled type="button">
Button
</button>
</div>
</div>

<highlight-code
type="html"
>
<button class="fake-link" type="button" disabled>Button</button>
</highlight-code>
<!--
<p>To style a button to look like an <em>action</em> link, use the <span class="highlight">fake-link--action</span> modifier.</p>

Expand Down
3 changes: 3 additions & 0 deletions src/sass/link/stories/link.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ export const RTL = () => `
export const fake = () =>
`<button class="fake-link" type="button">Button</button>`;

export const disabledFake = () =>
`<button class="fake-link" disbaled type="button">Button</button>`;

export const nav = () =>
`<a class="nav-link" href="https://www.ebay.com/?r=${Math.floor(
Math.random() * Math.floor(1000),
Expand Down