# Make \`border\` methods always require an explicit width \(\#11450\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/f658af59032e9306b35630ed5973e83bbf32a434)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: f658af59032e9306b35630ed5973e83bbf32a434

Requested commit: f658af59032e9306b35630ed5973e83bbf32a434

Commit: f658af59032e9306b35630ed5973e83bbf32a434

Tree: fe35d332179f387365797ca440f49088cb76548b

Author: Marshall Bowers

Committer: GitHub

## Message

````
Make `border` methods always require an explicit width (#11450)

This PR makes the `border` methods require an explicit width instead of
defaulting to 1px.

This breaks convention with Tailwind, but it makes GPUI more consistent
with itself. We already have an edge case where the parameterized method
had to be named `border_width`, since `border` was taken up by an alias
for the 1px variant.

### Before

```rs
div()
    .border()
    .border_t()
    .border_r()
    .border_b()
    .border_l()
    .border_width(px(7.))
```

### After

```rs
div()
    .border_1()
    .border_t_1()
    .border_r_1()
    .border_b_1()
    .border_l_1()
    .border(px(7.))
```

Release Notes:

- N/A
````

## Parents

- [f99b24accad60a825448e116455dc4f24d0ee485](https://git.cafe/gitcafe/zed/commit/f99b24accad60a825448e116455dc4f24d0ee485?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/f658af59032e9306b35630ed5973e83bbf32a434?format=markdown)
