To address this issue, I use a constant in direction_class method to encapsulate the direction class names (left-0 and right-0). This approach offers several advantages for future scenarios, especially when we aim to extend support for top and bottom positions.
As we are utilizing dynamic classes in the sheet component: (<%= options[:direction] %>-0)
The class
right-0
is not recognized by the Tailwind CSS purge process.To address this issue, I use a constant in
direction_class
method to encapsulate the direction class names (left-0
andright-0
). This approach offers several advantages for future scenarios, especially when we aim to extend support for top and bottom positions.