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

refactor(module: resizable): change cursor styles #4584

Merged
merged 1 commit into from
Jan 6, 2020
Merged

refactor(module: resizable): change cursor styles #4584

merged 1 commit into from
Jan 6, 2020

Conversation

LouisSung
Copy link
Contributor

@LouisSung LouisSung commented Dec 21, 2019

In order to keep the style consistent, the cursors for col-resize should be changed to ew-resize (row-resize to ns-resize).

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[x] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

  • Cursors for Resizable are now using different styles between [col/row] and [ew/ns], which make the UI style inconsistent (e.g., on Windows).
    • Because there are events to add these cursor styles to <body> element during MouseDown, it's hard to make a local patch using CSS only.

Issue Number: N/A

What is the new behavior?

As screenshot above (both col-resize and row-resize are change to ew- and ns- like styles)

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

In order to keep the style consistent, the cursors for col-resize should
be change to ew-resize (row-resize to ns-resize).
@zorro-bot
Copy link

zorro-bot bot commented Dec 21, 2019

This preview will be available after the TravisCI is passed.

@codecov
Copy link

codecov bot commented Dec 21, 2019

Codecov Report

Merging #4584 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4584   +/-   ##
=======================================
  Coverage   93.23%   93.23%           
=======================================
  Files         519      519           
  Lines       12822    12822           
  Branches     2013     2013           
=======================================
  Hits        11954    11954           
  Misses        452      452           
  Partials      416      416
Impacted Files Coverage Δ
components/resizable/nz-resizable.directive.ts 92.68% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update de6c797...5fcfb51. Read the comment docs.

@wzhudev wzhudev requested a review from hsuanxyz December 22, 2019 03:27
@wzhudev
Copy link
Member

wzhudev commented Dec 22, 2019

@hsuanxyz Can we assign pull requests to the correct code owner like what we do to the issues?

@wzhudev wzhudev assigned hsuanxyz and unassigned wzhudev Dec 22, 2019
@hsuanxyz hsuanxyz changed the title refactor: change cursor styles for Resizable refactor(module: resizable): change cursor styles Dec 23, 2019
@vthinkxie vthinkxie merged commit a108781 into NG-ZORRO:master Jan 6, 2020
Ricbet pushed a commit to Ricbet/ng-zorro-antd that referenced this pull request Apr 9, 2020
In order to keep the style consistent, the cursors for col-resize should
be change to ew-resize (row-resize to ns-resize).
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this pull request Aug 5, 2020
In order to keep the style consistent, the cursors for col-resize should
be change to ew-resize (row-resize to ns-resize).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants