-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add right margin to <Button kind='inline'/> using icons (#1664)
btn-inline did not have a rule to add margin to svgs in the css, like other kinds. This should do it in a backwards compatible way, and ensure all button kinds have the correct margin. We have a bunch of css for other kinds that would be no longer necessary, but not removing in case we use it in a non-standard way elsewhere. ```jsx // previously missing margin between icon and text <Button kind="inline" icon="dhTruck">Test</Button> ``` edit: was somewhat more complicated then expected, because children doesn't mean visible children ```jsx // should handle this case without adding margin <Button kind="inline" icon="dhTruck"><DropdownMenu/></Button> ``` --------- Co-authored-by: Matthew Runyon <matthewrunyon@deephaven.io>
- Loading branch information
1 parent
1e40d3e
commit fd8a6c6
Showing
50 changed files
with
47 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+2.3 KB
(120%)
tests/styleguide.spec.ts-snapshots/buttons-focus-section-2-0-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.54 KB
(110%)
tests/styleguide.spec.ts-snapshots/buttons-focus-section-2-0-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.28 KB
(120%)
tests/styleguide.spec.ts-snapshots/buttons-focus-section-2-0-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.14 KB
(110%)
tests/styleguide.spec.ts-snapshots/buttons-focus-section-2-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.59 KB
(110%)
tests/styleguide.spec.ts-snapshots/buttons-focus-section-2-1-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.24 KB
(120%)
tests/styleguide.spec.ts-snapshots/buttons-focus-section-2-1-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.14 KB
(120%)
...leguide.spec.ts-snapshots/buttons-focus-section-2-2-disabled-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.64 KB
(110%)
...yleguide.spec.ts-snapshots/buttons-focus-section-2-2-disabled-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.25 KB
(120%)
...tyleguide.spec.ts-snapshots/buttons-focus-section-2-2-disabled-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.8 KB
(110%)
tests/styleguide.spec.ts-snapshots/buttons-focus-section-2-3-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.12 KB
(110%)
tests/styleguide.spec.ts-snapshots/buttons-focus-section-2-3-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.64 KB
(110%)
tests/styleguide.spec.ts-snapshots/buttons-focus-section-2-3-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.22 KB
(110%)
tests/styleguide.spec.ts-snapshots/buttons-focus-section-2-4-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.48 KB
(110%)
tests/styleguide.spec.ts-snapshots/buttons-focus-section-2-4-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.24 KB
(120%)
tests/styleguide.spec.ts-snapshots/buttons-focus-section-2-4-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.75 KB
(120%)
tests/styleguide.spec.ts-snapshots/buttons-focus-section-2-5-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.41 KB
(120%)
tests/styleguide.spec.ts-snapshots/buttons-focus-section-2-5-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.84 KB
(120%)
tests/styleguide.spec.ts-snapshots/buttons-focus-section-2-5-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.1 KB
tests/styleguide.spec.ts-snapshots/buttons-focus-section-2-6-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+26.1 KB
tests/styleguide.spec.ts-snapshots/buttons-focus-section-2-6-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+16.3 KB
tests/styleguide.spec.ts-snapshots/buttons-focus-section-2-6-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.49 KB
(120%)
tests/styleguide.spec.ts-snapshots/buttons-hover-section-2-0-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.7 KB
(110%)
tests/styleguide.spec.ts-snapshots/buttons-hover-section-2-0-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+6.02 KB
(150%)
tests/styleguide.spec.ts-snapshots/buttons-hover-section-2-0-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.14 KB
(120%)
tests/styleguide.spec.ts-snapshots/buttons-hover-section-2-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.64 KB
(110%)
tests/styleguide.spec.ts-snapshots/buttons-hover-section-2-1-firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.25 KB
(120%)
tests/styleguide.spec.ts-snapshots/buttons-hover-section-2-1-webkit-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.14 KB
(120%)
...leguide.spec.ts-snapshots/buttons-hover-section-2-2-disabled-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.64 KB
(110%)
...yleguide.spec.ts-snapshots/buttons-hover-section-2-2-disabled-firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.25 KB
(120%)
...tyleguide.spec.ts-snapshots/buttons-hover-section-2-2-disabled-webkit-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.2 KB
(120%)
tests/styleguide.spec.ts-snapshots/buttons-hover-section-2-3-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.35 KB
(110%)
tests/styleguide.spec.ts-snapshots/buttons-hover-section-2-3-firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.08 KB
(120%)
tests/styleguide.spec.ts-snapshots/buttons-hover-section-2-3-webkit-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.36 KB
(120%)
tests/styleguide.spec.ts-snapshots/buttons-hover-section-2-4-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.41 KB
(110%)
tests/styleguide.spec.ts-snapshots/buttons-hover-section-2-4-firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.12 KB
(120%)
tests/styleguide.spec.ts-snapshots/buttons-hover-section-2-4-webkit-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.71 KB
(120%)
tests/styleguide.spec.ts-snapshots/buttons-hover-section-2-5-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.37 KB
(120%)
tests/styleguide.spec.ts-snapshots/buttons-hover-section-2-5-firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.87 KB
(120%)
tests/styleguide.spec.ts-snapshots/buttons-hover-section-2-5-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+17.6 KB
tests/styleguide.spec.ts-snapshots/buttons-hover-section-2-6-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+25.8 KB
tests/styleguide.spec.ts-snapshots/buttons-hover-section-2-6-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+16 KB
tests/styleguide.spec.ts-snapshots/buttons-hover-section-2-6-webkit-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.14 KB
(120%)
tests/styleguide.spec.ts-snapshots/buttons-inline-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.64 KB
(110%)
tests/styleguide.spec.ts-snapshots/buttons-inline-firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.25 KB
(120%)
tests/styleguide.spec.ts-snapshots/buttons-inline-webkit-linux.png
Oops, something went wrong.
Binary file modified
BIN
+13 Bytes
(100%)
tests/styleguide.spec.ts-snapshots/icons-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+284 Bytes
(100%)
tests/styleguide.spec.ts-snapshots/icons-firefox-linux.png
Oops, something went wrong.
Oops, something went wrong.