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: enhance doc for Solaris icons #2075

Merged
merged 53 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from 42 commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
33d0ff0
Change icons in Boosted-sprite with real Solaris icons
hannahiss Mar 29, 2023
89978a7
add doc + change the way to color toolip icon (to review again)
hannahiss Mar 31, 2023
ac36e35
add class bd-blue-fg to manager color of asistance icon foreground
hannahiss Apr 3, 2023
c295208
Merge branch 'main' into main-his-solaris-icons-sprite
hannahiss Apr 3, 2023
f06b0e9
enhance doc + cspell correction
hannahiss Apr 4, 2023
6913458
Merge branch 'main' into main-his-solaris-icons-sprite
hannahiss Jun 7, 2023
ead5a12
Merge branch 'main' into main-his-solaris-icons-sprite
hannahiss Jun 8, 2023
7129672
Enhance Solaris icons doc
hannahiss Jun 8, 2023
ab9ebdf
Change Solaris icons svg in Boosted sprite
hannahiss Jun 8, 2023
0e95261
add todo for color on tooltip icon
hannahiss Jun 8, 2023
36fca66
Merge branch 'main' into main-his-solaris-icons-doc
julien-deramond Jul 13, 2023
be5e2e0
Change tooltip color to currentColor in Boosted sprite
julien-deramond Jul 13, 2023
7ecc2fe
Merge branch 'main' into main-his-solaris-icons-doc
hannahiss Aug 24, 2023
a6962dd
use text colors utilities everywhere and update icons documentation
hannahiss Aug 24, 2023
6026436
Merge branch 'main' into main-his-solaris-icons-doc
hannahiss Aug 24, 2023
caaad94
Merge branch 'main' into main-his-solaris-icons-doc
hannahiss Sep 18, 2023
6333040
use warning icon on white (waiting for new accessible icon) + enhance…
hannahiss Sep 18, 2023
07b32e7
rearrange doc chapters
hannahiss Sep 18, 2023
2b63de1
Merge branch 'main' into main-his-solaris-icons-doc
hannahiss Oct 3, 2023
04a196f
fix URL and use ordered list
hannahiss Oct 5, 2023
bc6fd06
Merge branch 'main' into main-his-solaris-icons-doc
hannahiss Dec 1, 2023
1f226a1
use "icons" site parameter
hannahiss Dec 1, 2023
6df421c
Merge branch 'main' into main-his-solaris-icons-doc
louismaximepiton Jan 4, 2024
fb85250
Merge branch 'main' into main-his-solaris-icons-doc
hannahiss Feb 6, 2024
eb90904
Icons doc totally refunded
hannahiss Feb 21, 2024
40af084
icons finder url
hannahiss Feb 21, 2024
ec70b22
no closing </link> for preload
hannahiss Feb 21, 2024
10cfd07
.
hannahiss Feb 21, 2024
b64521a
Adjustments after first light review with LM
hannahiss Feb 21, 2024
12e2fac
.
hannahiss Feb 21, 2024
ffc0c7a
Merge branch 'main' into main-his-solaris-icons-doc
hannahiss Feb 21, 2024
450e0a0
remove icons from color utilities example and point to icons doc
hannahiss Feb 21, 2024
9551335
Fix CI + some typo proposals
louismaximepiton Feb 21, 2024
e0bd648
new error-severe icon (waiting for new warning icon with two paths...)
hannahiss Feb 22, 2024
d4aa979
Links to icons colors from colors utilities
hannahiss Feb 22, 2024
53c46c7
Links to icons colors from colors utilities
hannahiss Feb 22, 2024
cf0c07c
Changes after LM review
hannahiss Feb 22, 2024
1538f2c
remove unused boosted-cross.svg
hannahiss Feb 22, 2024
71fbe2e
Merge branch 'main' into main-his-solaris-icons-doc
julien-deramond Feb 22, 2024
886b51d
new icons from Stephen optimized with svgo + not needed newline in scss
hannahiss Feb 22, 2024
3b9f7cb
Merge remote-tracking branch 'origin/main-his-solaris-icons-doc' into…
hannahiss Feb 22, 2024
c49989b
typo
hannahiss Feb 22, 2024
9de999b
Update site/content/docs/5.3/utilities/colors.md
hannahiss Feb 22, 2024
512b351
Update site/content/docs/5.3/utilities/colors.md
hannahiss Feb 22, 2024
351c24a
Update site/content/docs/5.3/extend/icons.md
hannahiss Feb 22, 2024
1fb01b3
Update site/content/docs/5.3/extend/icons.md
hannahiss Feb 22, 2024
229cde5
Update site/assets/scss/_component-examples.scss
hannahiss Feb 22, 2024
ab37a61
Update site/assets/scss/_component-examples.scss
hannahiss Feb 22, 2024
578094b
typo + links
hannahiss Feb 22, 2024
ecedc92
delete useless currentColor
hannahiss Feb 22, 2024
e36484b
Update site/content/docs/5.3/extend/icons.md
julien-deramond Feb 23, 2024
478ec5e
Reorder alphabetically `icons_` Hugo vars
julien-deramond Feb 23, 2024
5c4875c
Add migration guide note
julien-deramond Feb 23, 2024
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 NOTICE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ site/static/docs/**/assets/brand/orange-logo.svg
site/static/docs/**/assets/brand/orange-logo-formatted.svg
site/static/docs/**/assets/brand/orange-social.png
site/static/docs/**/assets/brand/orange-social.svg
site/static/docs/**/assets/img/boosted-cross.svg
site/static/docs/**/assets/img/boosted-guidelines.png
site/static/docs/**/assets/img/boosted-guidelines@2x.png
site/static/docs/**/assets/img/boosted-sprite.svg
site/static/docs/**/assets/img/boosted-warning.svg
site/static/docs/**/assets/img/favicons/android-chrome-192x192.png
site/static/docs/**/assets/img/favicons/android-chrome-512x512.png
site/static/docs/**/assets/img/favicons/apple-touch-icon.png
Expand Down
2 changes: 2 additions & 0 deletions hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ params:
twitter: "getbootstrap"
blog: "https://blog.getbootstrap.com/"
icons: "https://oran.ge/icons"
icons_license: "https://design.orange.com/0c1af118d/p/92bb17-usage/t/63532c"
icons_doc: "https://design.orange.com/0c1af118d/p/92bb17-usage"
bootstrap: "https://getbootstrap.com"
ods:
web: "https://oran.ge/dsweb"
Expand Down
25 changes: 25 additions & 0 deletions site/assets/scss/_component-examples.scss
Original file line number Diff line number Diff line change
Expand Up @@ -467,4 +467,29 @@
white-space: nowrap;
}
}

// scss-docs-start icon-home
.icon-home::before {
display: inline-block;
width: 2rem;
height: 2rem;
vertical-align: bottom;
content: "";
background-color: var(--bs-body-color);
background-size: contain;
mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3e%3cpath d='M553.478 147.416v.017a74.956 74.956 0 0 0-107.08.13v-.021L100 500h150v300a75 75 0 0 0 75 75h350a75 75 0 0 0 75-75V500h150ZM580 537.52V755H362.5a37.5 37.5 0 0 1-37.5-37.5V500h217.5a37.5 37.5 0 0 1 37.5 37.5v.02Z' /%3e%3c/svg%3e");
hannahiss marked this conversation as resolved.
Show resolved Hide resolved
}
// scss-docs-end icon-home

// scss-docs-start icon-warning
.icon-warning::after {
display: inline-block;
width: 2rem;
height: 2rem;
vertical-align: bottom;
content: "";
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3e%3cpath fill='%23fc0' d='M500.497 125a93.94 93.94 0 0 1 81.09 46.517l328.62 562.5-.008.005a93.709 93.709 0 0 1-81.09 140.983H171.887a93.71 93.71 0 0 1-81.09-140.983l.765-1.326.036-.062 327.8-561.117C436.254 142.707 467.122 125 500.497 125Z' /%3e%3cpath d='M501.507 680.005c-26.233-.002-47.5 21.262-47.502 47.495s21.26 47.5 47.493 47.505a47.5 47.5 0 0 0 47.507-47.5c0-26.233-21.265-47.5-47.498-47.5m-.01-380.007c-26.238 0-47.507 21.27-47.507 47.507 0 .967.037 1.918.094 2.867l15.74 258.716.004.52c.288 17.092 14.355 23.53 31.667 23.53 17.486 0 31.662-6.568 31.67-24.05l15.7-258.121.057-.86a44 44 0 0 0 .082-2.602c0-26.238-21.27-47.507-47.507-47.507' fill='%23000'/%3e%3c/svg%3e");
hannahiss marked this conversation as resolved.
Show resolved Hide resolved
background-size: contain;
}
// scss-docs-end icon-warning
// End mod
18 changes: 9 additions & 9 deletions site/content/docs/5.3/components/buttons.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,19 @@ The recommended way of using an icon in a button is [an embedded SVG]({{< docsre
{{< example >}}
<button type="button" class="btn btn-primary btn-sm">
<svg width="1rem" height="1rem" fill="currentColor" aria-hidden="true" focusable="false" class="me-1 overflow-visible">
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/boosted-sprite.svg#success"/>
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/boosted-sprite.svg#tick-confirmation"/>
</svg>
Primary
</button>
<button type="button" class="btn btn-primary">
<svg width="1.25rem" height="1.25rem" fill="currentColor" aria-hidden="true" focusable="false" class="me-1">
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/boosted-sprite.svg#success"/>
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/boosted-sprite.svg#tick-confirmation"/>
</svg>
Primary
</button>
<button type="button" class="btn btn-primary btn-lg">
<svg width="1.25rem" height="1.25rem" fill="currentColor" aria-hidden="true" focusable="false" class="me-1 overflow-visible">
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/boosted-sprite.svg#success"/>
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/boosted-sprite.svg#tick-confirmation"/>
</svg>
Primary
</button>
Expand All @@ -95,19 +95,19 @@ Add `.btn-icon` to get a squared button, meant to only contain an icon. Make sur
{{< example >}}
<button type="button" class="btn btn-icon btn-outline-secondary btn-sm">
<svg width="1rem" height="1rem" fill="currentColor" aria-hidden="true" focusable="false" class="overflow-visible">
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/boosted-sprite.svg#success"/>
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/boosted-sprite.svg#tick-confirmation"/>
</svg>
<span class="visually-hidden">Secondary</span>
</button>
<button type="button" class="btn btn-icon btn-outline-secondary">
<svg width="1.25rem" height="1.25rem" fill="currentColor" aria-hidden="true" focusable="false">
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/boosted-sprite.svg#success"/>
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/boosted-sprite.svg#tick-confirmation"/>
</svg>
<span class="visually-hidden">Secondary</span>
</button>
<button type="button" class="btn btn-icon btn-outline-secondary btn-lg">
<svg width="1.25rem" height="1.25rem" fill="currentColor" aria-hidden="true" focusable="false" class="overflow-visible">
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/boosted-sprite.svg#success"/>
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/boosted-sprite.svg#tick-confirmation"/>
</svg>
<span class="visually-hidden">Secondary</span>
</button>
Expand All @@ -120,19 +120,19 @@ Use `.btn-no-outline` to get a borderless button as default state, and a consist
{{< example >}}
<button type="button" class="btn btn-icon btn-no-outline btn-sm">
<svg width="1rem" height="1rem" fill="currentColor" aria-hidden="true" focusable="false" class="overflow-visible">
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/boosted-sprite.svg#success"/>
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/boosted-sprite.svg#tick-confirmation"/>
</svg>
<span class="visually-hidden">No outline</span>
</button>
<button type="button" class="btn btn-icon btn-no-outline">
<svg width="1.25rem" height="1.25rem" fill="currentColor" aria-hidden="true" focusable="false">
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/boosted-sprite.svg#success"/>
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/boosted-sprite.svg#tick-confirmation"/>
</svg>
<span class="visually-hidden">No outline</span>
</button>
<button type="button" class="btn btn-icon btn-no-outline btn-lg">
<svg width="1.25rem" height="1.25rem" fill="currentColor" aria-hidden="true" focusable="false" class="overflow-visible">
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/boosted-sprite.svg#success"/>
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/boosted-sprite.svg#tick-confirmation"/>
</svg>
<span class="visually-hidden">No outline</span>
</button>
Expand Down
2 changes: 1 addition & 1 deletion site/content/docs/5.3/components/title-bars.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ We **strongly recommend** to use `srcset` attribute as it is [well supported](ht
<div class="bg-supporting-purple title-bar" data-bs-theme="light">
<div class="container-xxl">
<h1 class="display-1">Title</h1>
<svg aria-hidden="true" focusable="false" width="1.8em"><use xlink:href="/docs/{{< param docs_version >}}/assets/img/boosted-sprite.svg#document"/></svg>
<svg aria-hidden="true" focusable="false" width="1.8em"><use xlink:href="/docs/{{< param docs_version >}}/assets/img/boosted-sprite.svg#file-document"/></svg>
</div>
</div>
{{</ example >}}
Expand Down
8 changes: 4 additions & 4 deletions site/content/docs/5.3/components/tooltips.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,14 @@ With an SVG:

<div class="bd-example tooltip-demo">
<a href="#" class="d-inline-block" data-bs-toggle="tooltip" data-bs-title="Default tooltip" aria-label="Default tooltip">
<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 100 100" focusable="false" aria-hidden="true">
<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 100 100" aria-hidden="true" focusable="false">
<rect width="100%" height="100%" fill="#563d7c"/>
<circle cx="50" cy="50" r="30" fill="#007bff"/>
</svg>
</a>

<button type="button" class="btn btn-link p-0 me-3" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="Tooltip on top">
<svg xmlns="http://www.w3.org/2000/svg" width="1.25rem" height="1.25rem" focusable="false" aria-hidden="true">
<svg xmlns="http://www.w3.org/2000/svg" width="1.25rem" height="1.25rem" class="text-info" aria-hidden="true" focusable="false">
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/boosted-sprite.svg#assistance"></use>
</svg>
<span class="visually-hidden">Helper</span>
Expand All @@ -143,14 +143,14 @@ With an SVG:

```html
<a href="#" class="d-inline-block" data-bs-toggle="tooltip" data-bs-title="Default tooltip" aria-label="Default tooltip">
<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 100 100" focusable="false" aria-hidden="true">
<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 100 100" aria-hidden="true" focusable="false">
<rect width="100%" height="100%" fill="#563d7c"/>
<circle cx="50" cy="50" r="30" fill="#007bff"/>
</svg>
</a>

<button type="button" class="btn btn-link p-0 me-3" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="Tooltip on top">
<svg xmlns="http://www.w3.org/2000/svg" width="1.25rem" height="1.25rem" focusable="false" aria-hidden="true">
<svg xmlns="http://www.w3.org/2000/svg" width="1.25rem" height="1.25rem" class="text-info" aria-hidden="true" focusable="false">
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/boosted-sprite.svg#assistance"></use>
</svg>
<span class="visually-hidden">Helper</span>
Expand Down
Loading
Loading