Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: Add border-style on "s" and "e"
  • Loading branch information
SnowRunescape committed Mar 3, 2024
commit 3d478bdf47c16b887547df9091a03e76ef95dbf9
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

- Add new `selector` and `variant` strategies for dark mode ([#12717](https://github.com/tailwindlabs/tailwindcss/pull/12717))
- Add `border-x-{style}`, `border-y-{style}`, `border-b-{style}`, `border-l-{style}`, `border-t-{style}` and `border-r-{style}` utilities ([#12652](https://github.com/tailwindlabs/tailwindcss/pull/12652))
- Add `border-x-{style}`, `border-y-{style}`, `border-b-{style}`, `border-l-{style}`, `border-t-{style}`, `border-r-{style}`, `border-s-{style}` and `border-e-{style}` utilities ([#12652](https://github.com/tailwindlabs/tailwindcss/pull/12652))

### Changed

Expand Down
14 changes: 14 additions & 0 deletions src/corePlugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -1651,6 +1651,20 @@ export let corePlugins = {
'.border-hidden': { 'border-style': 'hidden' },
'.border-none': { 'border-style': 'none' },

'.border-s-solid': { 'border-inline-start-style': 'solid' },
'.border-s-dashed': { 'border-inline-start-style': 'dashed' },
'.border-s-dotted': { 'border-inline-start-style': 'dotted' },
'.border-s-double': { 'border-inline-start-style': 'double' },
'.border-s-hidden': { 'border-inline-start-style': 'hidden' },
'.border-s-none': { 'border-inline-start-style': 'none' },

'.border-e-solid': { 'border-inline-end-style': 'solid' },
'.border-e-dashed': { 'border-inline-end-style': 'dashed' },
'.border-e-dotted': { 'border-inline-end-style': 'dotted' },
'.border-e-double': { 'border-inline-end-style': 'double' },
'.border-e-hidden': { 'border-inline-end-style': 'hidden' },
'.border-e-none': { 'border-inline-end-style': 'none' },

'.border-x-solid': { 'border-left-style': 'solid', 'border-right-style': 'solid' },
'.border-x-dashed': { 'border-left-style': 'dashed', 'border-right-style': 'dashed' },
'.border-x-dotted': { 'border-left-style': 'dotted', 'border-right-style': 'dotted' },
Expand Down