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

Add information about ToastRack styling to the toast widget documentation #4492

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mxovd
Copy link

@mxovd mxovd commented May 8, 2024

Add information about ToastRack styling to the toast widget documentation

As requested in: #4473

Please review the following checklist.

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

Copy link
Collaborator

@davep davep left a comment

Choose a reason for hiding this comment

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

Offering a couple of tweaks.

docs/widgets/toast.md Outdated Show resolved Hide resolved
docs/widgets/toast.md Outdated Show resolved Hide resolved
mxovd and others added 2 commits May 8, 2024 22:44
Co-authored-by: Dave Pearson <davep.org@gmail.com>
Co-authored-by: Dave Pearson <davep.org@gmail.com>
Copy link

@merriam merriam left a comment

Choose a reason for hiding this comment

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

Sorry, I'm a bit confused. There are three classes from _toast.py, each with its own DEFAULT_CSS: the Toast (short lived notification), the ToastHolder (the little box holding one Toast), and the ToastRack (the bigger box, holding ToastHolders). They don't inherit, so changing a ToastRack width to 2fr would still leave the ToastHolder widths at 1fr and Toast width at 60.

Your change makes the ToastRack align to the right bottom, and the other example makes an imperceptible change to padding. Perhaps a better example could move toasts to long skinny toasts from the the top left of the screen and in different colors?

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.

None yet

3 participants