Skip to content

Commit 8a9e9a2

Browse files
authored
SVG export - Safari - Prevent box appearing on rounded corners (#2201)
* Use box-shadow instead of outline for Safari support * Update changelog re Safari SVG export square corner bug
1 parent cb56ec7 commit 8a9e9a2

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515

1616
- Fall back to `sys.__stderr__` on POSIX systems when trying to get the terminal size (fix issues when Rich is piped to another process)
1717
- Fixed markup escaping issue https://github.com/Textualize/rich/issues/2187
18+
- Safari - Box appearing around SVG export https://github.com/Textualize/rich/pull/2201
1819

1920
## [12.2.0] - 2022-04-05
2021

rich/_export_format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
align-items: center;
7070
background-color: {theme_background_color};
7171
border-radius: 14px;
72-
outline: 1px solid #484848;
72+
box-shadow: 0 0 0 1px #484848;
7373
}}
7474
.{classes_prefix}-terminal:after {{
7575
position: absolute;

tests/test_console.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ def test_export_html_inline():
543543
align-items: center;
544544
background-color: #0c0c0c;
545545
border-radius: 14px;
546-
outline: 1px solid #484848;
546+
box-shadow: 0 0 0 1px #484848;
547547
}
548548
.rich-svg-${SVG_HASH}-terminal:after {
549549
position: absolute;

0 commit comments

Comments
 (0)