Skip to content

Commit

Permalink
feat: remove web components style polyfill (#1991)
Browse files Browse the repository at this point in the history
* feat: remove webcomponents style polyfill

* feat: remove webcomponents style polyfill

* feat: remove webcomponents style polyfill
  • Loading branch information
carolin913 authored Dec 3, 2024
1 parent 94e21e2 commit d9d8757
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 22 deletions.
6 changes: 2 additions & 4 deletions style/web/components/avatar/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@

&.@{prefix}-avatar--offset-right {

& .@{prefix}-avatar,
& @{prefix}-avatar-light-dom {
& .@{prefix}-avatar {
&:not(:last-child) {
.avatar-group-offset-right(@avatar-group-offset-medium);

Expand All @@ -73,8 +72,7 @@
&.@{prefix}-avatar--offset-left {
.generate-z-index(@avatar-group-init-zIndex);

& .@{prefix}-avatar,
& @{prefix}-avatar-light-dom {
& .@{prefix}-avatar {
&:not(:first-child) {
.avatar-group-size--left();
}
Expand Down
22 changes: 6 additions & 16 deletions style/web/components/dialog/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,19 @@
border-radius: @border-radius-large;

// icon theme
.t-icon.@{prefix}-is-info,
t-icon-info-circle.@{prefix}-is-info {
.t-icon.@{prefix}-is-info {
color: @dialog-info-icon-color;
}

.t-icon.@{prefix}-is-success,
t-icon-check-circle.@{prefix}-is-success {
.t-icon.@{prefix}-is-success {
color: @dialog-success-icon-color;
}

.t-icon.@{prefix}-is-warning,
t-icon-error-circle.@{prefix}-is-warning {
.t-icon.@{prefix}-is-warning {
color: @dialog-warning-icon-color;
}

.t-icon.@{prefix}-is-error,
t-icon-error-circle.@{prefix}-is-error {
.t-icon.@{prefix}-is-error {
color: @dialog-error-icon-color;
}

Expand All @@ -63,10 +59,7 @@
width: 100%;
}

.t-icon:not(.t-icon-close),
t-icon-check-circle,
t-icon-info-circle,
t-icon-error-circle {
.t-icon:not(.t-icon-close) {
font-size: @dialog-icon-size;
display: inline-flex;
align-items: center;
Expand Down Expand Up @@ -127,10 +120,7 @@
width: 100%;
text-align: right;
padding: @dialog-footer-padding;

// 兼容 web components
.@{prefix}-button + .@{prefix}-button,
.@{prefix}-dialog__button + .@{prefix}-dialog__button {
.@{prefix}-button + .@{prefix}-button {
margin-left: @dialog-footer-button-margin-left;
}
}
Expand Down
3 changes: 1 addition & 2 deletions style/web/components/slider/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,7 @@
}
}

.@{prefix}-slider--vertical .@{prefix}-slider__button-wrapper,
.@{prefix}-slider__button-wrapper--vertical {
.@{prefix}-slider--vertical .@{prefix}-slider__button-wrapper {
top: auto;
position: absolute;
z-index: 2;
Expand Down

0 comments on commit d9d8757

Please sign in to comment.