Skip to content
Merged
Changes from 1 commit
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ th ::deep .col-options-button {
z-index: 1;
}

.col-justify-end .col-options {
left: unset;
right: 0;
}

.col-width-draghandle {
position: absolute;
top: 0;
Expand All @@ -76,10 +71,32 @@ td.col-justify-center {
text-align: center;
}

.col-justify-end .col-options {
left: unset;
right: 0;
}

td.col-justify-end {
text-align: right;
}

.col-justify-start .col-options {
left: 0;
right: unset;
}

td.col-justify-start {
text-align: left;
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We use in .col-justify-end { text-align: right }. So I just did this class by the same pattern as an existing class.

Copy link
Member

Choose a reason for hiding this comment

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

hmm. Maybe I'm not fully understanding how this works. But the start and end classes are typically used/defined for usage with logical properties, with the idea, that they automatically adapt to right to left languages like arabic, hebrew and so on

}

td.col-justify-right {
text-align: right;
}

td.col-justify-left {
text-align: left;
}

/* Unfortunately we can't use the :dir pseudoselector due to lack of browser support. Instead we have to rely on
the developer setting <html dir="rtl"> to detect if we're in RTL mode. */
html[dir=rtl] td.col-justify-end {
Expand All @@ -91,6 +108,10 @@ html[dir=rtl] .col-options {
right: 0;
}

html[dir=rtl] td.col-justify-start {
text-align: right;
}

html[dir=rtl] .col-justify-end .col-options {
right: unset;
left: 0;
Expand Down
Loading