Skip to content

Commit 201c70d

Browse files
committed
removed comments
1 parent e12979e commit 201c70d

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
3030
### Removed
3131

3232
- Breaking change: Removed `Markdown.code_dark_theme`, `Markdown.code_light_theme`, `Markdown.code_indent_guides` which are no longer needed with the new code fence. https://github.com/Textualize/textual/pull/5967
33+
- Removed focus style from Markdown, as it can be a little expensive https://github.com/Textualize/textual/commit/e84600cfb31630f8b5493bf1043a4a1e7c212f7c
3334

3435
## [4.0.0] - 2025-07-12
3536

src/textual/widgets/_markdown.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,6 @@ async def action_link(self, href: str) -> None:
236236
"""Called on link click."""
237237
self.post_message(Markdown.LinkClicked(self._markdown, href))
238238

239-
# def notify_style_update(self) -> None:
240-
# # self.refresh(layout=True)
241-
242-
# # """If CSS was reloaded, try to rebuild this block from its token."""
243-
# super().notify_style_update()
244-
# self.rebuild()
245-
246239
def rebuild(self) -> None:
247240
"""Rebuild the content of the block if we have a source token."""
248241
if self._inline_token is not None:
@@ -913,10 +906,7 @@ class Markdown(Widget):
913906
layout: vertical;
914907
color: $foreground;
915908
overflow-y: hidden;
916-
917-
# &:focus {
918-
# background-tint: $foreground 5%;
919-
# }
909+
920910
&:dark > .code_inline {
921911
background: $warning 10%;
922912
color: $text-warning 95%;

0 commit comments

Comments
 (0)