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

text-light is being overridden by .table-striped odd row color #35220

Closed
3 tasks done
ryanmortier opened this issue Oct 18, 2021 · 2 comments
Closed
3 tasks done

text-light is being overridden by .table-striped odd row color #35220

ryanmortier opened this issue Oct 18, 2021 · 2 comments

Comments

@ryanmortier
Copy link
Contributor

ryanmortier commented Oct 18, 2021

Prerequisites

Describe the issue

In Bootstrap v5.1.1 the following works correctly and the table row color is using text-light color for odd rows:

<table class="table table-striped">
    <tbody>
        <tr class="text-light"><td>Working - Text is using light color</td></tr>
        <tr class="text-light"><td>Working - Text is using light color</td></tr>
        <tr class="text-light"><td>Working - Text is using light color</td></tr>
    </tbody>
</table>

In Bootstrap v5.1.2 the following no longer works:

<table class="table table-striped">
    <tbody>
        <tr class="text-light"><td>Color being overridden by table-striped odd row</td></tr>
        <tr class="text-light"><td>Working because even rows aren't colored</td></tr>
        <tr class="text-light"><td>Color being overridden by table-striped odd row</td></tr>
    </tbody>
</table>

Is this an intentional change or is this a bug?

Reduced test cases

v5.1.1 https://codepen.io/morty11/pen/vYJGVxX
v5.1.2 https://codepen.io/morty11/pen/mdMPzrO

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

Chrome

What version of Bootstrap are you using?

v5.1.1 and v5.1.2

@fjalexandre
Copy link

Another issue related whit this:

#35158

@XhmikosR
Copy link
Member

Duplicate of #35158.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants