-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat: Add cell borders and colors for active detour table #2788
feat: Add cell borders and colors for active detour table #2788
Conversation
3bdd54b
to
ad664ca
Compare
980407d
to
1015c4f
Compare
Coverage of commit
|
ad664ca
to
01772ae
Compare
1015c4f
to
eaec76b
Compare
Coverage of commit
|
01772ae
to
b028c5e
Compare
eaec76b
to
0070b45
Compare
Coverage of commit
|
&.c-detours-table--active { | ||
td { | ||
background-color: tokens.$lemon-100; | ||
border-color: tokens.$lemon-600 !important; | ||
} | ||
|
||
th { | ||
border-bottom-color: tokens.$lemon-600 !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.
question(slightly-non-blocking): I was hoping we'd be able to do all of this with bootstrap, are we writing the CSS here because we don't have the bootstrap reboot yet? or because the colors in ui-alert
don't match "exactly" what the designs used?
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.
Maybe we should pair on this? I didn't put a huge amount of time into trying it, but I couldn't figure out how to create new bootstrap utility classes. So bg-primary
works and applies a background to the cells, but bg-lemon-600
or bg-active-detour
don't seem to do anything. I tried updating the theme colors in both the color definitions and the bootstrap variable overrides, but neither of those changes had any effect, so I gave up.
Also at least my first attempt with bootstrap utilities led to a bit of prop-drilling, which I didn't love.
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.
Yeah let's pair and see what we can find.
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.
marking as changes requested to get github to show better information on the PR's overview
0070b45
to
97862df
Compare
3e061f5
to
001369e
Compare
97862df
to
056dcfd
Compare
Coverage of commit
|
001369e
to
a0bfbe0
Compare
056dcfd
to
b03748f
Compare
a0bfbe0
to
068cc76
Compare
6fd418e
to
897b495
Compare
5099eba
to
6241f2a
Compare
@firestack Thanks for pairing! Want to take another look now? |
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.
One small thing but otherwise looks good 👍🏻
className={joinClasses([ | ||
...classNames, | ||
"c-detours-table", | ||
status === DetourStatus.Active ? "table-active-detour" : null, | ||
])} |
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.
suggestion(non-blocking if not small): is it possible to use the variant
prop here?
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.
Coverage of commit
|
Coverage of commit
|
Desktop
Mobile
Asana Ticket: https://app.asana.com/0/1205718271156548/1205857827225844/f
Depends on: