Optimize transition-default
Tailwind util to not target all properties
#8571
Labels
4 - verified
Issues that have been released and confirmed resolved.
calcite-components
Issues specific to the @esri/calcite-components package.
estimate - 3
A day or two of work, likely requires updates to tests.
p - medium
Issue is non core or affecting less that 60% of people using the library
refactor
Issues tied to code that needs to be significantly reworked.
Milestone
Description
Our current
transition-default
Tailwind utility applies transitions to all properties, leading to potential performance impact. We should revisit the util to target specific properties.As a first step, we could look into targeting a reduced set of essential/common transition properties.
Proposed Advantages
Improved performance by having browser transition relevant, or common, CSS properties.
Which Component
All components using
transition-default
:alert
checkbox
chip
date-picker-day
date-picker-month-header
inline-editable
input-message
input-number
input-text
input
link
modal
navigation-logo
navigation-user
notice
pagination
radio-button
rating
shell-panel
split-button
tab-title
tile-select
tree-item
x-button
(functional component)Relevant Info
List of all animatable CSS properties
See https://vallek.github.io/animatable-css/#anim
Colors
color
background-color
border-color
outline-color
fill
stroke
Dimensions
width
height
max-width
max-height
min-width
min-height
Margins, Padding, and Borders
margin
margin-top
margin-right
margin-bottom
margin-left
padding
padding-top
padding-right
padding-bottom
padding-left
border-width
border-top-width
border-right-width
border-bottom-width
border-left-width
border-spacing
Positioning
top
right
bottom
left
z-index
Backgrounds
background-size
background-position
Fonts and Text
font-size
font-weight
line-height
letter-spacing
text-indent
text-shadow
word-spacing
Transforms
transform
(includes transformations liketranslate
,scale
,rotate
,skew
)Opacity, Visibility, and Display
opacity
visibility
Filters
filter
(includes functions likeblur
,brightness
,contrast
,drop-shadow
,grayscale
,hue-rotate
,invert
,saturate
,sepia
)Box and Text Shadows
box-shadow
text-shadow
Outline
outline-width
outline-offset
Clip Paths
clip-path
Object Position
object-position
Flexbox and Grid
flex-grow
flex-shrink
flex-basis
grid-template-columns
grid-template-rows
grid-gap
grid-row-gap
grid-column-gap
Others
column-count
column-gap
column-width
perspective
perspective-origin
scroll-margin
scroll-padding
Calcite package
The text was updated successfully, but these errors were encountered: