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

fix: Disabled state button transition time #13008

Merged
merged 9 commits into from
Feb 11, 2021

Conversation

AAfghahi
Copy link
Member

@AAfghahi AAfghahi commented Feb 8, 2021

SUMMARY

Transition time was off between the SVG icon and the Run button. Used css transition delays to make it much smoother.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:

107099586-ebab7500-67c6-11eb-94a0-dd87f325fcc8.mp4

After:

button.mov

TEST PLAN

ADDITIONAL INFORMATION

Copy link
Member

@betodealmeida betodealmeida left a comment

Choose a reason for hiding this comment

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

@@ -91,25 +91,32 @@ const RunQueryActionButton = ({
? (DropdownButton as React.FC)
: Button;

const isDisabled = !sql.trim();
Copy link
Member

Choose a reason for hiding this comment

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

Nice, this is way more readable now, and the intent is clear!

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you! Though this was actually Elizabeth's suggestion. So can't take all the credit.

Copy link
Member

@etr2460 etr2460 left a comment

Choose a reason for hiding this comment

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

one comment, but looks great otherwise!

also, could you add a video of both the before and after behavior in the PR summary so that we can see exactly what changed?

@@ -69,6 +69,8 @@ const onClick = (
const StyledButton = styled.span`
button {
line-height: 13px;
transition: background-color 0ms;
// this is to over ride a previous transition built into the component
Copy link
Member

Choose a reason for hiding this comment

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

maybe add the comment above the transition line? I think that's how we usually comment stuff in the repo

Copy link
Member Author

Choose a reason for hiding this comment

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

changed! Thank you.

@AAfghahi
Copy link
Member Author

AAfghahi commented Feb 8, 2021

Added both these. Thank you again.

one comment, but looks great otherwise!

also, could you add a video of both the before and after behavior in the PR summary so that we can see exactly what changed?

@AAfghahi AAfghahi closed this Feb 8, 2021
@AAfghahi AAfghahi reopened this Feb 8, 2021
@eschutho
Copy link
Member

@AAfghahi we just need a rebase on this before we can merge it.

@AAfghahi
Copy link
Member Author

@AAfghahi we just need a rebase on this before we can merge it.

Ok, will do first thing in the morning.

@AAfghahi AAfghahi closed this Feb 10, 2021
@AAfghahi AAfghahi reopened this Feb 10, 2021
@AAfghahi AAfghahi changed the title Fix: Disabled state button transition time fix: Disabled state button transition time Feb 10, 2021
@AAfghahi
Copy link
Member Author

@AAfghahi we just need a rebase on this before we can merge it.

I think it should be good now?

@eschutho
Copy link
Member

Tested manually and it looks great. Thanks @AAfghahi!
🏷 ready-to-merge

@superset-github-bot superset-github-bot bot added the need:merge The PR is ready to be merged label Feb 11, 2021
@etr2460 etr2460 merged commit 6c9f315 into apache:master Feb 11, 2021
amitmiran137 pushed a commit to nielsen-oss/superset that referenced this pull request Feb 14, 2021
* button fix

* tooltips disabled when it is disabled, border width changed

* added isDisabled to tooltip

* worked on transition times

* cleaned up transition to be local instead of global

* made it local

* linted

* trying to resolve a conflict
amitmiran137 pushed a commit to nielsen-oss/superset that referenced this pull request Feb 14, 2021
* master: (30 commits)
  refactor(native-filters): decouple params from filter config modal (first phase) (apache#13021)
  fix(native-filters): set currentValue null when empty (apache#13000)
  Custom superset_config.py + secret envs (apache#13096)
  Update http error code from 400 to 403 (apache#13061)
  feat(native-filters): add storybook entry for select filter (apache#13005)
  feat(native-filters): Time native filter (apache#12992)
  Force pod restart on config changes (apache#13056)
  feat(cross-filters): add cross filters (apache#12662)
  fix(explore): Enable selecting an option not included in suggestions (apache#13029)
  Improves RTL configuration (apache#13079)
  Added a note about the ! prefix for breaking changes to CONTRIBUTING.md (apache#13083)
  chore: lock down npm to v6 (apache#13069)
  fix: API tests, make them possible to run independently again (apache#13076)
  fix: add config to disable dataset ownership on the old api (apache#13051)
  add required * indicator to message content/notif method (apache#12931)
  fix: Retroactively add granularity param to charts (apache#12960)
  fix(ci): multiline regex in change detection (apache#13075)
  feat(style): hide dashboard header by url parameter (apache#12918)
  fix(explore): pie chart label bugs (apache#13052)
  fix: Disabled state button transition time (apache#13008)
  ...
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.2.0 labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels need:merge The PR is ready to be merged preset-io size/XS 🚢 1.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants