This PR adds text styling to the contents within a table cell. The medium and negativetext colors in the theme were updated per accessibility (color contrast) recommendations from Vittorio in ticket #300. I added an optional variant property to the TableCell so that users can use the VARIANT.MEDIUM (which we will use for "No Longer Active" faculty absence fields in Course Planner) styling and VARIANT.NEGATIVE (which we will use for other faculty absences that need attention in Course Planner) styling. If the user does not specify a variant, the text font-weight and color will default to the theme's base color and medium weight, which is how all table cells were styled originally before this ticket.
Describe your changes
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality
to change)
Checklist:
[x] I have run eslint on the code
[x] I have added JSDoc for all of my code (where applicable)
This PR adds text styling to the contents within a table cell. The
medium
andnegative
text
colors in the theme were updated per accessibility (color contrast) recommendations from Vittorio in ticket #300. I added an optionalvariant
property to theTableCell
so that users can use theVARIANT.MEDIUM
(which we will use for "No Longer Active" faculty absence fields in Course Planner) styling andVARIANT.NEGATIVE
(which we will use for other faculty absences that need attention in Course Planner) styling. If the user does not specify a variant, the textfont-weight
andcolor
will default to the theme'sbase
color andmedium
weight, which is how all table cells were styled originally before this ticket.Describe your changes
Types of changes
Checklist:
eslint
on the codePriority:
Related Issues:
Fixes #300