Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

extend blue outline in URL bar to include bookmark button #5530

Merged
merged 1 commit into from
Nov 22, 2016

Conversation

jkup
Copy link
Contributor

@jkup jkup commented Nov 10, 2016

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).

Fix #5439

Auditors @bsclifton @bradleyrichter

@bradleyrichter this ticket presents a little bit of a tough problem.

The bookmark star needs to have a gray background but also needs to be positioned over the white urlbar. The only problem is if the width and height of the bookmark star background are 100% of the urlbar then the glow won't show up.

What I've done so far is made the grey background 1px smaller than the urlbar on all sides so technically there is a tiny white space in between but I think it looks alright.

Here are some screenshots of what I've come up with so far: let me know what you think!
screen shot 2016-11-09 at 6 45 50 pm
screen shot 2016-11-09 at 6 45 54 pm
screen shot 2016-11-09 at 6 45 57 pm

Test Plan:

  1. Click in the urlbar
  2. Make sure the blue focus ring covers the bookmark star
  3. Make sure you can still click the bookmark star

@jkup jkup added the design A design change, especially one which needs input from the design team. label Nov 10, 2016
@jkup jkup added this to the 0.12.10 release milestone Nov 10, 2016
@jkup
Copy link
Contributor Author

jkup commented Nov 10, 2016

Dang, for some reason the bookmark button isn't clickable on Windows. I'm trying to figure out if it's a positioning or maybe a z-index thing. Any thoughts @bsclifton?

@jkup
Copy link
Contributor Author

jkup commented Nov 13, 2016

Update: Still trying to get my Windows VM working so I can go back to figuring this out.

@bsclifton
Copy link
Member

Finally got my VM up and running yesterday 😄 Will be checking this out tonite...

@bsclifton
Copy link
Member

The problem is the margin-left on the urlbar icon (#navigator .urlbarIcon)

I had success by changing from margin (margin-left: 20px) to padding (padding-left: 20px). When I looked it up, it seems that margin is not intended to be clickable 😄

@jkup jkup changed the title [WiP] extend blue outline in URL bar to include bookmark button extend blue outline in URL bar to include bookmark button Nov 21, 2016
@jkup
Copy link
Contributor Author

jkup commented Nov 21, 2016

@bsclifton updated!

@bsclifton
Copy link
Member

plusplus 😄

@bsclifton bsclifton merged commit 7c5ce2f into master Nov 22, 2016
@bsclifton bsclifton deleted the blue-outline branch November 22, 2016 07:25
@bsclifton
Copy link
Member

@jkup can you update original post with testing steps? Thanks!

@luixxiul
Copy link
Contributor

@jkup

I'm trying to figure out if it's a positioning or maybe a z-index thing.

There are z-index variables inside variable.less to avoid a case like #1910 (PR #2074). I think the z-index you have set should be 2100 as the button is a subcomponent of the navigation bar, whose zindex is 2000. Please have a look at https://github.com/brave/browser-laptop/blob/master/less/variables.less#L124

Thanks!

@bradleyrichter
Copy link
Contributor

@jkup did you see this on mac?

image

@jkup
Copy link
Contributor Author

jkup commented Nov 23, 2016

@luixxiul thanks for the tip! it ended up not being a z-index issue :)

@bradleyrichter what am I looking at here?

bbondy added a commit that referenced this pull request Nov 23, 2016
This reverts commit 7c5ce2f, reversing
changes made to 9599f2c.
@bsclifton bsclifton removed this from the 0.13.0 milestone Nov 24, 2016
@bsclifton
Copy link
Member

bsclifton commented Nov 24, 2016

Removed milestone for now (since change was reverted)

@jkup there is a gap between the home button and the favicon star

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
design A design change, especially one which needs input from the design team. feature/URLbar misc/button QA/no-qa-needed reverted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants