question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Too much leading whitespace in input textfield

See original GitHub issue

Description

Too much leading whitespace in input textfield

Steps to Reproduce

  1. install 1.40.16
  2. launch Brave
  3. open a new-tab page
  4. scroll down
  5. click on Customize
  6. type in any text
  7. look at the leading whitespace before the first character

Actual result:

Light Dark
Screen Shot 2022-04-27 at 5 59 39 PM Screen Shot 2022-04-27 at 10 37 51 PM

Expected result:

Tigher/less leading whitespace before the first character of user input.

Reproduces how often:

100%

Brave version (info found on brave://version)

Brave 1.39.83 Chromium: 101.0.4951.41 (Official Build) beta (x86_64)
Revision 93c720db8323b3ec10d056025ab95c23a31997c9-refs/branch-heads/4951@{#904}
OS macOS Version 12.4 (Build 21F5063e)

cc @mattmcalister @petemill @jenn-rhim

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
aguscruizcommented, Apr 28, 2022

One thing to note, the focus state should only be used for focus:visible, meaning during keyboad navigation.

I did some little updates to standarize all the spacings and paddings and such.

The active state is the one to use when a user clicks on it. Focus:Visible is only visible for users that are using [TAB] to move around

1reaction
jenn-rhimcommented, Apr 28, 2022

for the standard UI component definition, please check in here: https://www.figma.com/file/z9wmg2FCwuXx9FLbDo5avJ/Platform-UI---Brave-desktop?node-id=66%3A7223

cc: @aguscruiz

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is textarea filled with mysterious white spaces?
Any space in between textarea openning and closing tags will be consider as whitespace. So for your above code, the correct way will...
Read more >
Top margin in text box has way too much space and I can't ...
Suddenly my text boxes have about 1.5 inches of space before the first line of text. I can't delete the space. I have...
Read more >
How whitespace is handled by HTML, CSS, and in the DOM
This is so that whitespace characters don't impact the layout of your page. Creating space around and inside elements is the job of...
Read more >
leading blank space in text field - SAP Community
Hi guys, i have defined include type in designer(adobe) to display text from SO item. which is working very much fine. If the...
Read more >
Allow 1 space per word, remove leading and trailing spaces in ...
Note that TextBox is not limited to 2 words in my plugin. CharranCZ (CharranCZ) March 29, 2022, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found