Found a bug? Please fill out the sections below. 👍
Issue Summary
The sizes defined here are not being applied correctly. The width is always 2px smaller than the real value
Steps to Reproduce
- Set up Django Pattern Library
- Click on the resize buttons
- See how the width is always 2px smaller than the real value
For example, when I click the S button it should resize to 320px but it is really resizing to 318px

Same for other sizes:


Technical details
- Python version: 3.9.13
- Django version: 3.2.18
- Browser version: Chrome 114
Found a bug? Please fill out the sections below. 👍
Issue Summary
The sizes defined here are not being applied correctly. The width is always 2px smaller than the real value
Steps to Reproduce
For example, when I click the
Sbutton it should resize to 320px but it is really resizing to 318pxSame for other sizes:
Technical details