-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Safari alignment of icons buttons and fields broken in stg (#337)
# What's Changed? - Fixing `svg` alignment issue in Safari. This was caused by the `min-width: min-content` rule on `svg`s put in place to prevent `svg`s shrinking when there is less space. Instead of this, the `svg` that was shrinking was wrapped in an extra `div`. ## Screenshots ### Before <img width="1323" alt="Screenshot 2023-01-16 at 16 30 03" src="https://user-images.githubusercontent.com/88904316/212726240-ec53e623-f0dc-4457-bed0-afee511f478b.png"> ### After <img width="1323" alt="Screenshot 2023-01-16 at 16 31 03" src="https://user-images.githubusercontent.com/88904316/212726392-0292c7f2-c843-4847-b032-bef49a510e06.png"> closes #332 Co-authored-by: loiswells97 <loiswells97@users.noreply.github.com> Co-authored-by: Lois Wells <lois.wells@raspberrypi.org> Co-authored-by: Lois Wells <88904316+loiswells97@users.noreply.github.com>
- Loading branch information
1 parent
438786d
commit 8ed3496
Showing
4 changed files
with
4 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,10 +10,6 @@ a { | |
} | ||
} | ||
|
||
svg { | ||
min-width: min-content; | ||
} | ||
|
||
button { | ||
all: initial; | ||
border: 3px solid transparent; | ||
|
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