Skip to content

Commit b729177

Browse files
Fixed CSS transparency bug in _style_properties.py
1 parent c1ba0d9 commit b729177

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## Unreleased
9+
10+
### Fixed
11+
12+
- Fixed issue with the "transparent" CSS value not being transparent when set using python
13+
814
## [3.5.0] - 2025-06-20
915

1016
### Changed

src/textual/css/_style_properties.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -984,6 +984,7 @@ def __set__(self, obj: StylesBase, color: Color | str | None) -> None:
984984
continue
985985
try:
986986
parsed_color = Color.parse(token)
987+
_r, _g, _b, alpha, _, _ = parsed_color
987988
except ColorParseError as error:
988989
raise StyleValueError(
989990
f"Invalid color value '{token}'",

0 commit comments

Comments
 (0)