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

Dark mode: Tables #2349

Merged
merged 3 commits into from
Nov 6, 2023
Merged

Dark mode: Tables #2349

merged 3 commits into from
Nov 6, 2023

Conversation

louismaximepiton
Copy link
Member

@louismaximepiton louismaximepiton commented Oct 31, 2023

Description

⚠️ Need to determine whether we have a transparent bg or a solid bg (nesting).
⚠️ If solid bg: Need to determine whether we keep #141414 or #000000 in dark mode.
⚠️ Need to determine whether the .table-active is the most important state or the :hover state.
⚠️ Might be merged after twbs/bootstrap#38826 to properly handle .bg-transparent on it.

Tables in dark mode, by using existing Sass vars :

Sass var Previous value New value
$table-bg var(--#{$prefix}body-bg) transparent
$table-striped-bg $table-striped-bg-factor var(--#{$prefix}table-striped-bg-factor)
$table-striped-hover-color $table-color var(--#{$prefix}black)
$table-striped-hover-bg $table-striped-hover-bg-factor var(--#{$prefix}table-striped-hover-bg-factor)
$table-active-color $table-color var(--#{$prefix}black)
$table-active-bg $table-active-bg-factor var(--#{$prefix}table-active-bg-factor)
$table-hover-bg $table-hover-bg-factor var(--#{$prefix}table-hover-bg-factor)

⚠️ New CSS var:

CSS var light value dark value
--bs-table-striped-hover-bg-factor $table-striped-hover-bg-factor .855
--bs-table-striped-bg-factor $table-hover-bg-factor .135
--bs-table-hover-bg-factor $table-hover-bg-factor .135
--bs-table-active-bg-factor $table-active-bg-factor .565

Links

@louismaximepiton louismaximepiton added the color mode Temporary label to highlight color mode issues label Oct 31, 2023
@netlify
Copy link

netlify bot commented Oct 31, 2023

Deploy Preview for boosted ready!

Name Link
🔨 Latest commit c5863f1
🔍 Latest deploy log https://app.netlify.com/sites/boosted/deploys/6548f702f1ef01000827e646
😎 Deploy Preview https://deploy-preview-2349--boosted.netlify.app/docs/5.3/dark-mode
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@julien-deramond julien-deramond force-pushed the main-jd-dark-mode branch 2 times, most recently from 03af5c3 to f49a3ee Compare November 3, 2023 11:30
@julien-deramond julien-deramond force-pushed the main-jd-dark-mode branch 2 times, most recently from 35328ca to f0b8a1e Compare November 6, 2023 07:18
@@ -150,6 +150,10 @@
--#{$prefix}icon-filter: none;
--#{$prefix}select-indicator: #{$form-select-indicator};
--#{$prefix}select-disabled-indicator: #{$form-select-disabled-indicator};
--#{$prefix}table-striped-bg-factor: #{$table-striped-bg-factor};
Copy link
Member

Choose a reason for hiding this comment

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

We'll see that at the end of the process of migrating everything, but these variables will probably end up in _tables.scss.

@julien-deramond
Copy link
Member

The icon should be white in this case, isn't it?

Screenshot 2023-11-06 at 14 25 05

@@ -914,7 +914,7 @@ Use SVG or PNG to display icons or thumbnails in your compact table data cell el
</div>
</td>
<td>
<img src="/docs/{{< param docs_version >}}/assets/img/thumbnail.png" alt="Thumbnail" width="30" height="30" class="me-2">
<img style="filter: var(--bs-icon-filter)" src="/docs/{{< param docs_version >}}/assets/img/thumbnail.png" alt="Thumbnail" width="30" height="30" class="me-2">
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to say something about it in the documentation, or move on to a real SVG?

@julien-deramond julien-deramond self-requested a review November 6, 2023 14:21
Copy link
Member

@julien-deramond julien-deramond left a comment

Choose a reason for hiding this comment

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

Let's merge it as si even if we have a lot of questions, remarks.

@julien-deramond julien-deramond merged commit 5f6270b into main-jd-dark-mode Nov 6, 2023
11 of 12 checks passed
@julien-deramond julien-deramond deleted the main-lmp-table-dark branch November 6, 2023 14:25
@julien-deramond julien-deramond mentioned this pull request Nov 6, 2023
julien-deramond added a commit that referenced this pull request Nov 7, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Nov 8, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Nov 10, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Nov 13, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Nov 15, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Nov 27, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Nov 27, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Nov 27, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Nov 29, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Nov 30, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Dec 1, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Dec 4, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Dec 8, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Dec 15, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Dec 18, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Dec 21, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Dec 26, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Dec 27, 2023
Co-authored-by: Julien Déramond <[email protected]>
julien-deramond added a commit that referenced this pull request Jan 2, 2024
Co-authored-by: Julien Déramond <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
color mode Temporary label to highlight color mode issues
Projects
Development

Successfully merging this pull request may close these issues.

2 participants