Skip to content

Commit

Permalink
feat(tag): mobile optimisation (#1163)
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinLaubenstein authored and nowseemee committed Oct 27, 2022
1 parent 6839bc7 commit 3ac7fd1
Show file tree
Hide file tree
Showing 32 changed files with 375 additions and 203 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ export const TagsCell: Cell = {
<ul class={`tbody__tag-list`}>
{tags.map((tag) => (
<li>
<scale-tag size="small">{tag}</scale-tag>
<scale-tag size="small" type="strong">
{tag}
</scale-tag>
</li>
))}
</ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`Tag should have a link 1`] = `
<scale-tag href="#">
<mock:shadow-root>
<a class="tag tag--link" href="#" part="base link" target="_self">
<a class="tag tag--color-standard tag--link tag--type-standard" href="#" part="base type-standard color-standard link" target="_self">
<slot></slot>
</a>
</mock:shadow-root>
Expand All @@ -14,7 +14,7 @@ exports[`Tag should have a link 1`] = `
exports[`Tag should match snapshot 1`] = `
<scale-tag>
<mock:shadow-root>
<span class="tag" part="base">
<span class="tag tag--color-standard tag--type-standard" part="base type-standard color-standard">
<slot></slot>
</span>
</mock:shadow-root>
Expand Down
21 changes: 11 additions & 10 deletions packages/components/src/components/tag/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,17 @@

## Properties

| Property | Attribute | Description | Type | Default |
| ------------- | -------------- | ------------------------------ | ------------- | ----------- |
| `disabled` | `disabled` | (optional) Tag disabled | `boolean` | `false` |
| `dismissText` | `dismiss-text` | (optional) Dismiss label | `string` | `'dismiss'` |
| `dismissable` | `dismissable` | (optional) Tag dismissable | `boolean` | `false` |
| `href` | `href` | (optional) Tag href | `string` | `''` |
| `size` | `size` | (optional) Tag size | `"small"` | `undefined` |
| `styles` | `styles` | (optional) Injected CSS styles | `string` | `undefined` |
| `target` | `target` | (optional) Tag target | `string` | `'_self'` |
| `variant` | `variant` | (optional) Tag variant | `"secondary"` | `undefined` |
| Property | Attribute | Description | Type | Default |
| ------------- | -------------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------- | ------------ |
| `color` | `color` | (optional) Tag color | `"black" \| "brown" \| "cyan" \| "dismissable" \| "green" \| "grey" \| "olive" \| "orange" \| "red" \| "teal" \| "violet" \| "yellow"` | `'grey'` |
| `disabled` | `disabled` | (optional) Tag disabled | `boolean` | `false` |
| `dismissText` | `dismiss-text` | (optional) Dismiss label | `string` | `'dismiss'` |
| `dismissable` | `dismissable` | (optional) Tag dismissable | `boolean` | `false` |
| `href` | `href` | (optional) Tag href | `string` | `''` |
| `size` | `size` | (optional) Tag size | `"small"` | `undefined` |
| `styles` | `styles` | (optional) Injected CSS styles | `string` | `undefined` |
| `target` | `target` | (optional) Tag target | `string` | `'_self'` |
| `type` | `type` | (optional) Tag type | `"standard" \| "strong"` | `'standard'` |


## Events
Expand Down
Loading

0 comments on commit 3ac7fd1

Please sign in to comment.