Facepunch / sbox-issues

180 stars 12 forks source link

[UI] Border appearing even when not set when element is scaled down #7511

Open Retroeer opened 5 days ago

Retroeer commented 5 days ago

Describe the bug

I have nice and cool buttons that have a border-bottom: white 1px; none of the other borders are specified However, when scaling this down, all of the other borders appear (inconsistently)

https://github.com/user-attachments/assets/d8e76015-096a-40d8-81fa-3fa29f154104

To Reproduce

  1. Make a div with a border-bottom, don't specify any others
  2. on hover or active, transform: scale(0.98);
  3. The other borders should appear

Expected behavior

This faint outline should not be appearing

Media/Files

No response

Additional context

Setting the other borders to transparent resolves this