-
Notifications
You must be signed in to change notification settings - Fork 9
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
Fix: modal for 4 or more agencies #2516
base: main
Are you sure you want to change the base?
Conversation
59869fd
to
1d80b26
Compare
I am running into one problem still, I added
because otherwise the cards in the mobile view are too tall, but this line is clearly unnecessary. |
benefits/static/css/styles.css
Outdated
.card-row { | ||
gap: var(--card-gap); | ||
.agency-container-width { | ||
width: 75%; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this could be a Bootstrap utility class, unless it needs to change for a viewport width or something:
https://getbootstrap.com/docs/5.3/utilities/sizing/#relative-to-the-parent
w-75
adds
width: 75% !important;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @machikoyasuda!
Initially I was having trouble getting all the layouts to show up correctly using width: 75%;
only so I tried out grid
, but with
width: 75%;
margin: 0 auto;
as you wrote in the ticket makes all the layouts work. I'll update this PR shortly to keep using flex
instead of grid
.
1d80b26
to
c8ba06e
Compare
Closes #2431
This PR fixes the Agency selector modal to arrange the agencies in the following manner:
Reviewing
Replace your local
TransitAgency
fixtures to use (the data is incorrect, but we only need to review the modal)and use Django's template filter, for example,
{% for agency in active_agencies|slice:"0:3" %}
(where the slice goes from 0 (included) to 3 (not included)) inbenefits/benefits/core/templates/core/includes/modal--agency-selector.html
Line 12 in 1d80b26