Skip to content

Commit

Permalink
Merge pull request #27659 from shaodahong/merge-to-feature
Browse files Browse the repository at this point in the history
chore: Merge master to feature
  • Loading branch information
afc163 authored Nov 9, 2020
2 parents 0e6e185 + 1b7a642 commit 5724a8b
Show file tree
Hide file tree
Showing 8 changed files with 58 additions and 57 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout
if: github.event_name == 'pull_request_target'
uses: actions/checkout@master
with:
ref: refs/pull/${{ github.event.pull_request.number }}/merge

- name: checkout
if: github.event_name == 'push'
uses: actions/checkout@master

- name: install
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ timeline: true

---

## 4.8.2

`2020-11-09`

- 🐞 Fix Pagination lost jumper margin style. [#27650](https://github.com/ant-design/ant-design/pull/27650)
- 🐞 Fix Steps `type="navigation"` last item broken style. [#27654](https://github.com/ant-design/ant-design/pull/27654)

## 4.8.1

`2020-11-08`
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ timeline: true

---

## 4.8.2

`2020-11-09`

- 🐞 修复 Pagination 快速跳转 margin 丢失的问题。[#27650](https://github.com/ant-design/ant-design/pull/27650)
- 🐞 修复 Steps `type="navigation"` 最后一项的样式问题。[#27654](https://github.com/ant-design/ant-design/pull/27654)

## 4.8.1

`2020-11-08`
Expand Down
72 changes: 24 additions & 48 deletions components/pagination/style/rtl.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,76 +4,52 @@

@pagination-prefix-cls: ~'@{ant-prefix}-pagination';

.@{pagination-prefix-cls} {
&-rtl {
direction: rtl;
.@{pagination-prefix-cls}-rtl {
.@{pagination-prefix-cls}-total-text {
margin-right: 0;
margin-left: 8px;
}

&-total-text {
.@{pagination-prefix-cls}-rtl & {
margin-right: 0;
margin-left: 8px;
}
.@{pagination-prefix-cls}-item,
.@{pagination-prefix-cls}-prev,
.@{pagination-prefix-cls}-jump-prev,
.@{pagination-prefix-cls}-jump-next {
margin-right: 0;
margin-left: 8px;
}

&-item {
.@{pagination-prefix-cls}-rtl & {
margin-right: 0;
margin-left: 8px;
}
.@{pagination-prefix-cls}-slash {
margin: 0 5px 0 10px;
}

&-prev,
&-jump-prev,
&-jump-next {
.@{pagination-prefix-cls}-rtl & {
.@{pagination-prefix-cls}-options {
margin-right: 16px;
margin-left: 0;

.@{pagination-prefix-cls}-options-size-changer.@{ant-prefix}-select {
margin-right: 0;
margin-left: 8px;
}
}

&-slash {
.@{pagination-prefix-cls}-rtl & {
margin: 0 5px 0 10px;
}
}

&-options {
.@{pagination-prefix-cls}-rtl & {
margin-right: 16px;
margin-left: 0;
}

&-size-changer.@{ant-prefix}-select {
.@{pagination-prefix-cls}-rtl & {
margin-right: 0;
margin-left: 8px;
}
}

&-quick-jumper {
.@{pagination-prefix-cls}-options-quick-jumper {
margin-left: 0;
}
}

&-simple &-simple-pager {
.@{pagination-prefix-cls}-rtl& {
&.@{pagination-prefix-cls}-simple {
.@{pagination-prefix-cls}-simple-pager {
margin-right: 0;
margin-left: 8px;
}

input {
.@{pagination-prefix-cls}-rtl& {
input {
margin-right: 0;
margin-left: 8px;
}
}
}

&.mini &-options {
.@{pagination-prefix-cls}-rtl& {
margin-right: 2px;
margin-left: 0;
}
&.@{pagination-prefix-cls}.mini .@{pagination-prefix-cls}-options {
margin-right: 2px;
margin-left: 0;
}
}
4 changes: 2 additions & 2 deletions components/steps/style/custom-icon.less
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
.@{steps-prefix-cls}-item-custom {
.@{steps-prefix-cls}-item-icon {
> .@{steps-prefix-cls}-item-container > .@{steps-prefix-cls}-item-icon {
height: auto;
background: none;
border: 0;
> .@{steps-prefix-cls}-icon {
top: @steps-icon-custom-top;
left: 4.5px;
left: 0.5px;
width: @steps-icon-custom-size;
height: @steps-icon-custom-size;
font-size: @steps-icon-custom-font-size;
Expand Down
2 changes: 1 addition & 1 deletion components/steps/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
}

&:last-child {
flex: none !important;
flex: none;
}

&:last-child > &-container > &-tail,
Expand Down
14 changes: 9 additions & 5 deletions components/steps/style/vertical.less
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
.@{steps-prefix-cls}-vertical {
display: flex;
flex-direction: column;
.@{steps-prefix-cls}-item {

> .@{steps-prefix-cls}-item {
display: block;
flex: 1 0 auto;
padding-left: 0;
overflow: visible;

&-icon {
.@{steps-prefix-cls}-item-icon {
float: left;
margin-right: @steps-vertical-icon-width;
}
&-content {

.@{steps-prefix-cls}-item-content {
display: block;
min-height: 48px;
overflow: hidden;
}
&-title {

.@{steps-prefix-cls}-item-title {
line-height: @steps-icon-size;
}
&-description {

.@{steps-prefix-cls}-item-description {
padding-bottom: 12px;
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "antd",
"version": "4.8.1",
"version": "4.8.2",
"description": "An enterprise-class UI design language and React components implementation",
"title": "Ant Design",
"keywords": [
Expand Down

0 comments on commit 5724a8b

Please sign in to comment.