Skip to content

🐛 Fix opacity in frame containers#5858

Merged
niwinz merged 2 commits into
developfrom
elenatorro-10126-fix-stroke-opacity
Feb 19, 2025
Merged

🐛 Fix opacity in frame containers#5858
niwinz merged 2 commits into
developfrom
elenatorro-10126-fix-stroke-opacity

Conversation

@elenatorro

@elenatorro elenatorro commented Feb 14, 2025

Copy link
Copy Markdown
Contributor

Related ticket https://tree.taiga.io/project/penpot/issue/10126

Context

Board elements (frame shapes in the codebase) are not applying opacity to the whole shape-container.

Fix

Apply opacity only in the parent frame container. Tested with different stroke types (inside, outside, center), different export format (png, svg, jpg). Shadow and blur seem to work fine as well for both workspace and export.

Workspace:

Comparing board vs rect

image

Export results:

Board - Border Center
Board - Border Inside
Board - Border Outside

@niwinz niwinz self-assigned this Feb 14, 2025
@elenatorro
elenatorro force-pushed the elenatorro-10126-fix-stroke-opacity branch 2 times, most recently from d08874f to 75f1ae9 Compare February 14, 2025 13:47
@elenatorro elenatorro added the bug Something isn't working as expected label Feb 14, 2025
@elenatorro
elenatorro marked this pull request as draft February 14, 2025 14:31
@elenatorro
elenatorro force-pushed the elenatorro-10126-fix-stroke-opacity branch from 75f1ae9 to f5a26d8 Compare February 18, 2025 08:59
@elenatorro
elenatorro force-pushed the elenatorro-10126-fix-stroke-opacity branch from bc600ee to b4e3f3a Compare February 18, 2025 10:49
@elenatorro
elenatorro marked this pull request as ready for review February 18, 2025 10:56
@niwinz
niwinz merged commit 73a52e5 into develop Feb 19, 2025
@niwinz
niwinz deleted the elenatorro-10126-fix-stroke-opacity branch February 19, 2025 09:44
Lobster-0429 pushed a commit to Lobster-0429/penpot that referenced this pull request May 4, 2026
* 🐛 Fix opacity in frame containers

* 📎 Improve readability of frame containers by using class names
SaiMahitVaddadi pushed a commit to SaiMahitVaddadi/penpot that referenced this pull request Jun 10, 2026
* 🐛 Fix opacity in frame containers

* 📎 Improve readability of frame containers by using class names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants