Skip to content

refactor: clean up crosstable styles#7189

Open
ElectricalBoy wants to merge 7 commits intomainfrom
crosstables-styles-cleanup
Open

refactor: clean up crosstable styles#7189
ElectricalBoy wants to merge 7 commits intomainfrom
crosstables-styles-cleanup

Conversation

@ElectricalBoy
Copy link
Collaborator

@ElectricalBoy ElectricalBoy commented Mar 1, 2026

Summary

This PR:

  • replaces recursive @includes with @for loop
  • removes vendor prefix variants of box-shadow
    box-shadow is baseline widely available for over a decade now, so it should be safe to remove all vendor prefix variants
  • reduces number of @mixins

How did you test this change?

difftools + browser dev tools

it's baseline since 2015, so should be safe to kick entirely
@ElectricalBoy ElectricalBoy requested review from a team as code owners March 1, 2026 03:39
@ElectricalBoy ElectricalBoy added the stylesheets Changes to stylesheets label Mar 1, 2026
Copy link
Collaborator

@hjpalpha hjpalpha left a comment

Choose a reason for hiding this comment

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

seems reasonable on phone

$idp1: $id + 1;
.crosstable.crosstable-col-#{$idp1} td:nth-child(#{$id}) {
@mixin crosstable-col($max) {
@for $i from 1 through $max {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@FO-nTTaX this was the scss-php issue right?

Copy link
Member

Choose a reason for hiding this comment

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

not sure what you mean with "this"

Copy link
Member

Choose a reason for hiding this comment

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

If it's about $idp1 then frankly I'm not sure anymore

Copy link
Collaborator

Choose a reason for hiding this comment

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

the for loop

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we've been using for loop since #7023 and it has been working without issues

Copy link
Member

Choose a reason for hiding this comment

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

Pretty sure @for loops were never an issue, it was @extend that caused us issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants