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

Change margin-left & margin-right properties to fix a bug with RTL languages #287

Merged

Conversation

AbdulrhmanGoni
Copy link
Contributor

@AbdulrhmanGoni AbdulrhmanGoni commented May 6, 2024

Closes #286

What change does this pull request introduce?

Replaces the properties margin-left and margin-right of the icon and the buttons links inside title container
section in language page with margin-inline-start and margin-inline-end, because when direction property
of the icon and buttons links changed to "rtl", margin-inline-start and margin-inline-end change margins
directions of the icon and buttons links to suit the "rtl" direction, Unlike margin-left and margin-right
that keep the margins in one direction even if the direction of the icon and buttons links changed.

Screenshots

before changes:

Screenshot (54)

After changes:

Screenshot (55)

Checklist

  • I worked on a branch other than main.
  • I have fixed potential errors using yarn lint.
  • My branch is up-to-date with the Upstream main branch.
  • I ran yarn build to check everything still builds successfully.

Replace `margin-left` and `margin-right` properties of the links and the icon
inside title container in language page with `margin-inline-start` and `margin-inline-end`
because when the `direction` property of these elements changed to "rtl",
`margin-inline-start` and `margin-inline-end` change margins directions of the
elements to suit the "rtl" direction.
Copy link

vercel bot commented May 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
website ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 6, 2024 3:14pm

Copy link
Collaborator

@maltejur maltejur left a comment

Choose a reason for hiding this comment

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

Thanks

@maltejur maltejur enabled auto-merge May 6, 2024 15:48
@maltejur maltejur merged commit dae33ae into TheAlgorithms:main May 6, 2024
4 checks passed
@AbdulrhmanGoni AbdulrhmanGoni deleted the fix-margins-bug-in-language-page branch May 6, 2024 15:51
@AbdulrhmanGoni
Copy link
Contributor Author

Thanks

My pleasure,
That was my first contribution in Open-Source world 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] margins bug in programming languages page when switching to RTL languages
2 participants