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

This adds branding to the UAST Lab #204

Merged
merged 1 commit into from
Jul 11, 2019
Merged

This adds branding to the UAST Lab #204

merged 1 commit into from
Jul 11, 2019

Conversation

ricardobaeta
Copy link
Contributor

image

Signed-off-by: Ricardo Baeta [email protected]

@carlosms
Copy link
Contributor

The only problem I've found is the style for disabled buttons.

In here you can see the SEARCH button correctly changes the color when it is enabled/disabled. Well, the change is maybe too subtle, but it is there:
a

But for LOAD/SHARE there is not change in style when they are enabled/disabled. When I paste the url https://gist.githubusercontent.com/carlosms/77fe0df0b1b371b9b165abe984ea2560/raw/ab6037be92fb90f42b9468de17d3bcf2b7268d81/hello.java in the text field the only way to know they are active is the shadow on hover. The color does not change, like with SEARCH.
b

@ricardobaeta
Copy link
Contributor Author

Thanks @carlosms for the catch! The latest commit 7cee8b0 fixes this bug.

@dpordomingo dpordomingo added the enhancement New feature or request label Jul 10, 2019
Copy link
Contributor

@dpordomingo dpordomingo left a comment

Choose a reason for hiding this comment

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

LGTM but a minor thing that could be addressed in a new issue/PR

readonly (unnactive) buttons has no the same styles in share button and search buttons.
Also, filled UAST Query input is different to filled Raw Gist Url input.

👇 both are innactive
image

👇 both are acrive
image

@carlosms
Copy link
Contributor

Exactly, maybe I didn't explain myself in my previous comment, but the gif shows how LOAD and SHARE don't change the style for enabled/disabled, while SEARCH has this subtle change in color.

Since 7cee8b0 removes the shadow on hover for active buttons, now there is absolutely no visual cue to know if LOAD or SHARE are enabled/disabled.

@ricardobaeta
Copy link
Contributor Author

ricardobaeta commented Jul 10, 2019

@carlosms and @dpordomingo :) Thanks for really taking the time to point me out to the traits of this behaviour. I wasn't fully understanding the interaction before, and now I do and know how we can improve it.

Details of my latest changes:

  1. The text on the input of the Raw Gist URL has now proper typography styling.
  2. The buttons - LOAD & SHARE & SEARCH - have now a :hover effect when they're active.
  3. A button should always provide visual feedback upon people's interaction - hover/click - despite being inactive. Having this in mind, I've added a subtle behaviour to these inactive buttons.

Solution 👇

load-share-search

Squashed comit of all comits made on this PR upon reviewers request.

Signed-off-by: Ricardo Baeta <[email protected]>
@dpordomingo
Copy link
Contributor

For me, the new change is enough to merge. We can iterate in another PR, considering the following issues:

Copy link
Contributor

@carlosms carlosms left a comment

Choose a reason for hiding this comment

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

👍

@carlosms carlosms merged commit 77eb34d into master Jul 11, 2019
@carlosms carlosms deleted the uast-tab-branding branch July 11, 2019 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants