Skip to content

Commit

Permalink
fix(link): docs with new version
Browse files Browse the repository at this point in the history
  • Loading branch information
aesteves60 authored and dpellier committed Jul 29, 2024
1 parent 71fb8ac commit fd15623
Show file tree
Hide file tree
Showing 14 changed files with 225 additions and 237 deletions.

This file was deleted.

16 changes: 0 additions & 16 deletions packages/ods/src/components/link/documentation/overview-link.mdx

This file was deleted.

52 changes: 52 additions & 0 deletions packages/ods/src/components/link/documentation/spec.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<<<<<<< HEAD
## OdsLink
### Properties
| Property | Type | Required | Default value |
Expand All @@ -11,12 +12,63 @@
| referrerpolicy | `ReferrerPolicy` | `false` | `undefined` |
| rel | `string` | `false` | `undefined` |
| target | `string` | `false` | `undefined` |
=======
## Properties
### color

**color**: [_primary_] = `ODS_LINK_COLOR.primary`


### disabled

**disabled**: [_boolean_] = `false`


### download

`Optional` **download**: [_string_]


### href

**href**: [_string_]


### icon

`Optional` **icon**: [`arrow-left` | `warning`]


### label

`Optional` **label**: [_string_]


### referrerpolicy

`Optional` **referrerpolicy**: [`ReferrerPolicy`]


### rel

`Optional` **rel**: [_string_]


### target

`Optional` **target**: [_string_]
>>>>>>> 24de30e59 (fix(link): docs with new version)



<<<<<<< HEAD
### Enums
#### ODS_LINK_COLOR
=======
## Enums
### Enumeration: ODS_LINK_COLOR
>>>>>>> 24de30e59 (fix(link): docs with new version)
**primary** = `"primary"`

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,22 @@

.ods-link {
&__link {
$current: &;

@include ods-link;
&:not(&#{$current}--disabled) {
&#{$current}--primary {
color: var(--ods-color-primary-500);

&:hover {
color: var(--ods-color-primary-700);
}

&:visited {
color: var(--ods-color-primary-800);
}
}
}

&__text {
display: inline-flex;
Expand All @@ -17,24 +32,12 @@
&--disabled {
opacity: .5;
cursor: not-allowed;
color: var(--ods-color-neutral-400) !important;
color: var(--ods-color-neutral-400);

&:focus-visible, &:hover {
transition: none;
background-size: 0;
}
}

&--primary {
color: var(--ods-color-primary-500);

&:hover {
color: var(--ods-color-primary-700);
}

&:visited {
color: var(--ods-color-primary-800);
}
}
}
}
1 change: 0 additions & 1 deletion packages/ods/src/style/_link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
font-family: var(--ods-font-family-default);
font-weight: 600;

/* stylelint-disable-next-line order/order */
&:focus-visible, &:hover {
transition: background-size .2s ease-out;
background-size: 100% 1px;
Expand Down
Loading

0 comments on commit fd15623

Please sign in to comment.