Skip to content
Merged
Show file tree
Hide file tree
Changes from 44 commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
ea6b825
First version of tag (without tag input)
hannahiss Jul 9, 2025
50f895d
Merge branch 'ouds/main' into ouds/main-his-tag-component
hannahiss Jul 9, 2025
0b1661d
Fix <br>
hannahiss Jul 10, 2025
80d23be
Fix <li>
hannahiss Jul 10, 2025
c58fc85
Fix github checks
hannahiss Jul 10, 2025
5b49096
Fix github checks, docs and some scss
hannahiss Jul 10, 2025
bf63370
Start tag input
hannahiss Jul 10, 2025
a30f6f1
fix ci
hannahiss Jul 11, 2025
85c9560
fix ci
hannahiss Jul 11, 2025
560c185
first version tag input
hannahiss Jul 11, 2025
bf023b9
remove comments
hannahiss Jul 11, 2025
e3d88da
fix $ouds-tag-space-column-gap-default token
hannahiss Jul 11, 2025
efa0334
fix docs ci
hannahiss Jul 11, 2025
1463717
Merge branch 'ouds/main' into ouds/main-his-tag-component
hannahiss Jul 11, 2025
e05c493
update comments, restore tokens
hannahiss Jul 11, 2025
093da75
remove duplicate example
hannahiss Jul 11, 2025
4269780
restore tag-disabled color
hannahiss Jul 11, 2025
1b55e60
First version of tag (without tag input)
hannahiss Jul 9, 2025
469fff6
Fix <br>
hannahiss Jul 10, 2025
7fceb97
Fix <li>
hannahiss Jul 10, 2025
9f8378b
Fix github checks
hannahiss Jul 10, 2025
d628345
Fix github checks, docs and some scss
hannahiss Jul 10, 2025
6b7373b
Start tag input
hannahiss Jul 10, 2025
78ac370
fix ci
hannahiss Jul 11, 2025
ee907aa
fix ci
hannahiss Jul 11, 2025
fd441fa
first version tag input
hannahiss Jul 11, 2025
03f775a
remove comments
hannahiss Jul 11, 2025
9a897aa
fix $ouds-tag-space-column-gap-default token
hannahiss Jul 11, 2025
3b698a0
fix docs ci
hannahiss Jul 11, 2025
cacee07
update comments, restore tokens
hannahiss Jul 11, 2025
725ea75
remove duplicate example
hannahiss Jul 11, 2025
ea699b9
restore tag-disabled color
hannahiss Jul 11, 2025
d6db50e
fix: revert helvetica font removal
nilloq Jul 17, 2025
108ef07
refactor: update tag scss
nilloq Jul 21, 2025
3b50cd9
refactor: tag loader circle
nilloq Jul 21, 2025
f31cfe6
Merge branch 'ouds/main-his-tag-component' of github.com:Orange-OpenS…
nilloq Jul 21, 2025
910f1fa
fix: bundle watch size
nilloq Jul 21, 2025
584827a
fix: revert font
nilloq Jul 21, 2025
ea712bc
Merge remote-tracking branch 'origin/ouds/main' into ouds/main-his-ta…
louismaximepiton Jul 29, 2025
61e37bd
Working
louismaximepiton Jul 29, 2025
f3bfe21
wip
louismaximepiton Jul 30, 2025
e0ea131
Another version of the component
louismaximepiton Jul 30, 2025
d422603
Migration + tags in doc changes + small issues
louismaximepiton Jul 30, 2025
3f43694
fix(review)
louismaximepiton Aug 5, 2025
e4d5793
fix(review)
louismaximepiton Aug 12, 2025
56ba557
Merge branch 'ouds/main' into ouds/main-his-tag-component
hannahiss Aug 25, 2025
61ae11f
fix missing space after bullet to have a good display
hannahiss Aug 25, 2025
1a1fc6e
rollback changes in buttons.mdx, moved to PR #3100
hannahiss Aug 25, 2025
bbd0998
Review and reorganization of the doc
hannahiss Sep 2, 2025
213e254
align tag with title
hannahiss Sep 2, 2025
a8eebae
Merge branch 'ouds/main' into ouds/main-his-tag-component
hannahiss Sep 2, 2025
44dedeb
increase bundlewatch
hannahiss Sep 4, 2025
99acca5
Merge remote-tracking branch 'origin/ouds/main-his-tag-component' int…
hannahiss Sep 4, 2025
8cfb428
Modify full examples (with toolbars and/or preview) not to have the r…
hannahiss Sep 8, 2025
b80d099
Merge branch 'ouds/main' into ouds/main-his-tag-component
hannahiss Sep 8, 2025
45f6825
doc + loader v1.2
hannahiss Sep 9, 2025
4875fec
Update .bundlewatch.config.json
hannahiss Sep 9, 2025
300e75f
Merge branch 'ouds/main' into ouds/main-his-tag-component
hannahiss Sep 15, 2025
1d5acd8
doc update + icon in mask-image
hannahiss Sep 17, 2025
250f93f
fix: bundlewatch
MaxLardenois Sep 17, 2025
df8a4d9
fix(doc): use li directly for tags to avoid alignment issue
MaxLardenois Sep 17, 2025
efe088c
refactor(doc): markdown indentation
MaxLardenois Sep 17, 2025
01cabb9
fix(doc): add loading class to show loading state on tag loader
MaxLardenois Sep 17, 2025
36d3a47
Merge branch 'ouds/main' into ouds/main-his-tag-component
hannahiss Sep 19, 2025
bda0511
tags v1.3.0 and all changes of doc...
hannahiss Sep 22, 2025
6dac73b
fix stylelint
hannahiss Sep 22, 2025
7c425df
remove unused icon + bundlewatch fix + self closing tag
hannahiss Sep 22, 2025
7262621
change title !
hannahiss Sep 22, 2025
e04cf7d
Update scss/_tags.scss (calc)
hannahiss Sep 23, 2025
2b9911f
Update scss/_tags.scss
hannahiss Sep 23, 2025
12400a9
Update site/src/content/docs/components/tags.mdx
hannahiss Sep 23, 2025
381461a
Update site/src/content/docs/components/tags.mdx
hannahiss Sep 23, 2025
094b2d0
Update site/src/content/docs/components/tags.mdx
hannahiss Sep 23, 2025
cc9e1b7
Update site/src/content/docs/components/tags.mdx
hannahiss Sep 23, 2025
f67f9a9
Update site/src/content/docs/components/tags.mdx
hannahiss Sep 23, 2025
91313b0
typo + use computed variables names
hannahiss Sep 23, 2025
a310b75
Update site/src/content/docs/components/tags.mdx
hannahiss Sep 23, 2025
f3abaf0
Update site/src/content/docs/components/tags.mdx
hannahiss Sep 23, 2025
e20b6d6
Update site/src/content/docs/components/tags.mdx
hannahiss Sep 23, 2025
fe2ec27
indentation
hannahiss Sep 23, 2025
86ffbe0
Merge remote-tracking branch 'origin/ouds/main-his-tag-component' int…
hannahiss Sep 23, 2025
1b1da29
Example without toolbar for overview + accessibility labels and texts
hannahiss Sep 24, 2025
df6076e
suppress ":"
hannahiss Sep 24, 2025
c3b1592
Merge branch 'ouds/main' into ouds/main-his-tag-component
MaxLardenois Sep 26, 2025
25808eb
Merge branch 'ouds/main' into ouds/main-his-tag-component
hannahiss Oct 1, 2025
4a98482
a11y fix
hannahiss Oct 1, 2025
d94380f
a11y fix + li
hannahiss Oct 1, 2025
a317897
Merge branch 'ouds/main' into ouds/main-his-tag-component
MaxLardenois Oct 2, 2025
3671fee
use tag in migration on chips
MaxLardenois Oct 2, 2025
1d4a00d
fix typo
MaxLardenois Oct 2, 2025
3e7ceed
reword tag color callout
MaxLardenois Oct 2, 2025
8502337
feat: improve a11y documentation
MaxLardenois Oct 3, 2025
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
2 changes: 1 addition & 1 deletion .bundlewatch.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
{
"path": "./dist/css/ouds-web-bootstrap.min.css",
"maxSize": "63.0 kB"
"maxSize": "63.25 kB"
},
{
"path": "./dist/css/ouds-web-grid.css",
Expand Down
189 changes: 189 additions & 0 deletions scss/_tag.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,189 @@
.tag {
--#{$prefix}tag-min-width: #{$ouds-tag-size-min-width-default};
--#{$prefix}tag-min-height: #{$ouds-tag-size-min-height-default};
--#{$prefix}tag-color: #{$ouds-color-content-on-status-neutral-emphasized};
--#{$prefix}tag-border-width: 0px;
--#{$prefix}tag-background-color: #{$ouds-color-surface-status-neutral-emphasized};
--#{$prefix}tag-padding-start: #{$ouds-tag-space-padding-inline-default};
--#{$prefix}tag-padding-end: #{$ouds-tag-space-padding-inline-default};
--#{$prefix}tag-padding-asset: #{$ouds-tag-space-padding-inline-asset-default};
--#{$prefix}tag-padding-y: #{$ouds-tag-space-padding-block-default};
--#{$prefix}tag-asset-container-size: #{$ouds-tag-size-asset-default};
--#{$prefix}tag-asset-padding: #{$ouds-tag-space-inset-icon-default};
--#{$prefix}tag-asset-gap: #{$ouds-tag-space-column-gap-default};
--#{$prefix}tag-asset-color: currentcolor;
--#{$prefix}tag-loading-dasharray: 92;
--#{$prefix}tag-loading-animation: 2.1875s infinite linear rotate1-indeterminate, 1.25s linear infinite rotate2-indeterminate;

position: relative;
display: inline-flex;
gap: var(--#{$prefix}tag-asset-gap);
align-items: center;
justify-content: center;
min-width: var(--#{$prefix}tag-min-width);
min-height: var(--#{$prefix}tag-min-height);
padding: subtract(var(--#{$prefix}tag-padding-y), var(--#{$prefix}tag-border-width)) subtract(var(--#{$prefix}tag-padding-end), var(--#{$prefix}tag-border-width)) subtract(var(--#{$prefix}tag-padding-y), var(--#{$prefix}tag-border-width)) subtract(var(--#{$prefix}tag-padding-start), var(--#{$prefix}tag-border-width));
margin: 0;
font-weight: 700;
color: var(--#{$prefix}tag-color);
white-space: nowrap;
vertical-align: text-bottom; // TODO alignment to check with text in <p>
background-color: var(--#{$prefix}tag-background-color);
@include get-font-size("label-medium");
@include border-radius($ouds-tag-border-radius);

&:has(.tag-asset-container) {
--#{$prefix}tag-padding-start: var(--#{$prefix}tag-padding-asset);
}
}

.tag-asset-container {
display: flex;
flex-shrink: 0;
align-items: center;
width: var(--#{$prefix}tag-asset-container-size);
height: var(--#{$prefix}tag-asset-container-size);
padding: var(--#{$prefix}tag-asset-padding);

svg,
img,
.icon {
width: 100%;
height: 100%;
overflow: hidden;
line-height: 1;
color: var(--#{$prefix}tag-asset-color);
}

&:has(.tag-bullet) {
--#{$prefix}tag-asset-padding: #{$ouds-tag-space-inset-bullet-default};
}

&:has(.tag-loader) {
--#{$prefix}tag-asset-padding: #{$ouds-tag-space-inset-loader-default};
}
}

.tag-bullet {
width: 100%;
height: 100%;
background-color: var(--#{$prefix}tag-asset-color);
@include border-radius(#{$ouds-tag-border-radius});
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would probably use the token $ouds-border-radius-pill here directly rather than the tag border radius. In Orange case, the values are the same, but it may be different in other brand.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand because $ouds-tag-border-radius = $ouds-border-radius-pill and is a given token, so we have to use it, right?

}

.tag-loader { // TODO copied from button loader, should be factorized
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we have a file with placeholders that could be extended ? or a mixin ? The style on img,svg,.icon is also often used is the code

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is a good idea indeed, we might dig that a bit.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes we should do that

--#{$prefix}tag-asset-color: currentcolor;

display: block;
margin: 0;
font-size: var(--#{$prefix}tag-asset-container-size);
transform: rotate(-90deg);

> .tag-loader-inner {
fill: none;
stroke: var(--#{$prefix}tag-asset-color);
stroke-dasharray: var(--#{$prefix}tag-loading-dasharray);
stroke-width: 8;
transform-origin: center;
animation: var(--#{$prefix}tag-loading-animation);
}
}

.tag-disabled { // TODO: [aria-disabled="true"] ?
--#{$prefix}tag-color: #{$ouds-color-content-on-action-disabled};
--#{$prefix}tag-background-color: #{$ouds-color-action-disabled};
}

.tag.text-bg-status-accent-muted {
--#{$prefix}tag-asset-color: #{$ouds-color-surface-status-accent-emphasized};
}

.tag.text-bg-status-positive-muted {
--#{$prefix}tag-asset-color: #{$ouds-color-surface-status-positive-emphasized};
}

.tag.text-bg-status-info-muted {
--#{$prefix}tag-asset-color: #{$ouds-color-surface-status-info-emphasized};
}

.tag.text-bg-status-warning-muted {
--#{$prefix}tag-asset-color: #{$ouds-color-surface-status-warning-emphasized};
}

.tag.text-bg-status-negative-muted {
--#{$prefix}tag-asset-color: #{$ouds-color-surface-status-negative-emphasized};
}

.tag-sm {
--#{$prefix}tag-padding-start: #{$ouds-tag-space-padding-inline-small};
--#{$prefix}tag-padding-end: #{$ouds-tag-space-padding-inline-small};
--#{$prefix}tag-padding-start-asset: #{$ouds-tag-space-padding-inline-asset-small};
--#{$prefix}tag-padding-y: #{$ouds-tag-space-padding-block-small};
--#{$prefix}tag-min-width: #{$ouds-tag-size-min-width-small};
--#{$prefix}tag-min-height: #{$ouds-tag-size-min-height-small};
--#{$prefix}tag-asset-container-size: #{$ouds-tag-size-asset-small};
--#{$prefix}tag-bullet-padding: #{$ouds-tag-space-inset-bullet-small};
--#{$prefix}tag-icon-padding: #{$ouds-tag-space-inset-icon-small};
--#{$prefix}tag-loader-padding: #{$ouds-tag-space-inset-loader-small};
--#{$prefix}tag-asset-gap: #{$ouds-tag-space-column-gap-small};
@include get-font-size("label-small");
}

.tag-input {
--#{$prefix}tag-color: #{$ouds-tag-input-color-content-enabled};
--#{$prefix}tag-background-color: #{$ouds-tag-input-color-bg-enabled};
--#{$prefix}tag-border-color: #{$ouds-tag-input-color-border-enabled};
--#{$prefix}tag-border-width: #{$ouds-tag-input-border-width-default};
--#{$prefix}tag-padding-end: var(--#{$prefix}tag-padding-asset);

margin: calc(($ouds-tag-size-min-height-interactive-area - var(--#{$prefix}tag-min-height)) / 2) 0; // stylelint-disable-line function-disallowed-list
border: var(--#{$prefix}tag-border-width) solid var(--#{$prefix}tag-border-color);

&::before {
position: absolute;
top: calc(-.5 * ($ouds-tag-size-min-height-interactive-area - var(--bs-tag-min-height)) - var(--#{$prefix}tag-border-width)); // stylelint-disable-line function-disallowed-list
right: calc(-1 * var(--#{$prefix}tag-border-width)); // stylelint-disable-line function-disallowed-list
bottom: calc(-.5 * ($ouds-tag-size-min-height-interactive-area - var(--bs-tag-min-height)) - var(--#{$prefix}tag-border-width)); // stylelint-disable-line function-disallowed-list
left: calc(-1 * var(--#{$prefix}tag-border-width)); // stylelint-disable-line function-disallowed-list
content: "";
}

&::after {
width: var(--#{$prefix}tag-asset-container-size);
height: var(--#{$prefix}tag-asset-container-size);
content: "";
background-color: currentcolor;
mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'><path d='M500 83.333 416.667 0 250 166.667 83.333 0 0 83.333 166.667 250 0 416.667 83.333 500 250 333.333 416.667 500 500 416.667 333.333 250z' transform='translate(250 250)'/></svg>");
}

&:hover {
--#{$prefix}tag-color: #{$ouds-tag-input-color-content-hover};
--#{$prefix}tag-background-color: #{$ouds-tag-input-color-bg-hover};
--#{$prefix}tag-border-color: #{$ouds-tag-input-color-border-hover};
--#{$prefix}tag-border-width: #{$ouds-tag-input-border-width-default-interaction};
}

&:active {
--#{$prefix}tag-color: #{$ouds-tag-input-color-content-pressed};
--#{$prefix}tag-background-color: #{$ouds-tag-input-color-bg-pressed};
--#{$prefix}tag-border-color: #{$ouds-tag-input-color-border-pressed};
--#{$prefix}tag-border-width: #{$ouds-tag-input-border-width-default-interaction};
}

&:focus-visible {
--#{$prefix}tag-color: #{$ouds-tag-input-color-content-focus};
--#{$prefix}tag-background-color: #{$ouds-tag-input-color-bg-focus};
--#{$prefix}tag-border-color: #{$ouds-tag-input-color-border-focus};
--#{$prefix}tag-border-width: #{$ouds-tag-input-border-width-default-interaction};
}

&:disabled,
&[aria-disabled="true"] {
--#{$prefix}tag-color: #{$ouds-color-action-disabled};
--#{$prefix}tag-background-color: #{$ouds-color-content-on-action-disabled};
--#{$prefix}tag-border-color: #{$ouds-color-action-disabled};
--#{$prefix}tag-border-width: #{$ouds-tag-input-border-width-default};

pointer-events: none;
}
}
141 changes: 0 additions & 141 deletions scss/_tags.scss

This file was deleted.

38 changes: 0 additions & 38 deletions scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2244,44 +2244,6 @@ $footer-gap: $spacer * .75 !default;
$footer-gap-xl: $spacer * 1.7 !default;
// scss-docs-end footer


// Tags

// scss-docs-start tag-variables
$tag-color: var(--#{$prefix}body-color) !default;
$tag-bg: var(--#{$prefix}body-bg) !default;

$tag-gap: map-get($spacers, 1) !default;
$tag-font-shift: $spacer * .1 !default;
$tag-font-weight: $font-weight-bold !default;
$tag-border-width: var(--#{$prefix}border-width) !default;
$tag-border-radius: var(--#{$prefix}border-radius-pill) !default;

$tag-padding-x: $spacer * .65 !default;
$tag-padding-y: $spacer * .45 !default;
$tag-icon-size: $spacer * 1.2 !default;
$tag-icon-margin-start: -$spacer * .35 !default;
$tag-close-margin-end: -$spacer * .3 !default;
$tag-close-margin-start: $spacer * .2 !default;
$tag-font-size: $font-size-base !default;

$tag-active-color: var(--#{$prefix}highlight-color) !default;
$tag-disabled-color: var(--#{$prefix}color-content-disabled) !default;
$tag-border-color: var(--#{$prefix}color-border-default) !default;
$tag-active-decoration-color: var(--#{$prefix}highlight-bg) !default;
// scss-docs-end tag-variables

// scss-docs-start tag-sm-variables
$tag-padding-x-sm: $spacer * .4 !default;
$tag-padding-y-sm: $spacer * .25 !default;
$tag-icon-size-sm: $spacer !default;
$tag-icon-margin-start-sm: -$spacer * .1 !default;
$tag-close-margin-end-sm: -$spacer * .25 !default;
$tag-close-margin-start-sm: 0 !default;
$tag-font-size-sm: $font-size-sm !default;
// scss-docs-end tag-sm-variables


// Local navigation

// scss-docs-start local-nav-variables
Expand Down
2 changes: 1 addition & 1 deletion scss/ouds-web.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
@import "breadcrumb";
@import "pagination";
@import "badge";
@import "tags";
@import "tag";
@import "alert";
@import "progress";
@import "list-group";
Expand Down
Loading