Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Breadcrumb/Carousel/Pagination): handle icons in RTL mode #2633

Merged
merged 3 commits into from
Nov 14, 2024

Conversation

Malik-Jouda
Copy link
Contributor

@Malik-Jouda Malik-Jouda commented Nov 13, 2024

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

icon-mode-rtl

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

Copy link

pkg-pr-new bot commented Nov 13, 2024

pnpm add https://pkg.pr.new/@nuxt/ui@2633

commit: 056073f

@@ -124,9 +126,14 @@ const emits = defineEmits<PaginationEmits>()
const slots = defineSlots<PaginationSlots>()

const appConfig = useAppConfig()

const { isRTL } = useLocale()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use dir === 'rtl' instead of adding another ref?

Copy link
Contributor Author

@Malik-Jouda Malik-Jouda Nov 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because of repetition dir === 'rtl'

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd just keep dir.value === 'rtl', it's not much chars

Copy link
Contributor Author

@Malik-Jouda Malik-Jouda Nov 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check the last update

@benjamincanac benjamincanac changed the title feat(icons): handle icons in RTL mode fix(components): handle icons in RTL mode Nov 14, 2024
@benjamincanac benjamincanac changed the title fix(components): handle icons in RTL mode fix(Breadcrumb/Carousel/Pagination): handle icons in RTL mode Nov 14, 2024
@benjamincanac benjamincanac merged commit e5119a9 into nuxt:v3 Nov 14, 2024
2 checks passed
@benjamincanac
Copy link
Member

Thanks! 😊

@Malik-Jouda Malik-Jouda deleted the icons-in-rtl-mode branch November 14, 2024 20:23
@benjamincanac benjamincanac added the v3 #1289 label Nov 16, 2024 — with Volta.net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v3 #1289
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants