Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure styles applied in correct order in DataTable #2272

Merged
merged 3 commits into from
Apr 12, 2023

Conversation

darrenburns
Copy link
Member

@darrenburns darrenburns commented Apr 12, 2023

Fixes #2061 by ensuring we apply styles in the correct order.

image

Before this change, in the image above, the text under the cursor remained red, as the component styling for the cursor was not being applied on top of the style from the text (renderable) in the cell.

Please review the following checklist.

  • Docstrings on all new or modified functions / classes
  • Updated documentation
  • Updated CHANGELOG.md (where appropriate)

@darrenburns darrenburns linked an issue Apr 12, 2023 that may be closed by this pull request
@darrenburns darrenburns marked this pull request as ready for review April 12, 2023 13:29

class Styled:
"""A renderable which allows you to apply a style before and after another renderable.
This can be used to layer styles on top of each other, like a style sandwich. This is used,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥪

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DataTable cell foreground trumps cursor foreground
2 participants