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: audio pci controls fliped for RTL #290

Merged
merged 5 commits into from
Mar 28, 2022

Conversation

Silvia-loza
Copy link
Contributor

@Silvia-loza Silvia-loza commented Mar 24, 2022

Related to Issue: https://oat-sa.atlassian.net/browse/AUT-2009

Fix : Audio PCI controls should be on the left even in RTL

SETPS to test:
• Checkout to branch: fix/AUT-2009/audio-pci-flipped
• Run taoUpdate.php
• Create an item and add an audio interaction
• Set the language to a RTL one (e.g. Arab)

ACTUAL RESULT:
Audio pci controls show on the right side

EXPECTED RESULT:
The audio controls show on the Left, the same way as in LTR
image

Copy link
Contributor

@marpesia marpesia left a comment

Choose a reason for hiding this comment

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

Good job.
Some minor change to nail it. 💪

@include rtl {
margin: 10px 0 10px 10px;
display: flex;
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you try to move the display: flex rule to the .audiorec-control parent?
This change should avoid the size jump when we switch the direction.

Copy link
Contributor Author

@Silvia-loza Silvia-loza Mar 24, 2022

Choose a reason for hiding this comment

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

parent already has display: flex, applying it here acts over the text and the svg image, if removed those two don't flip... but you're right there is a small jump in size, need to look into that...

Copy link
Contributor

@bziondik bziondik left a comment

Choose a reason for hiding this comment

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

  • New code is covered by tests (if applicable)
  • Tests are running successfully (old and new ones) on my local machine (if applicable)
  • New code is respecting code style rules
  • New code is respecting best practices
  • New code is not subject to concurrency issues (if applicable)
  • Feature is working correctly on my local machine (if applicable)
  • Acceptance criteria are respected
  • Pull request title and description are meaningful

image

@github-actions
Copy link

Version

Target Version 7.16.1
Last version 7.16.0

There are 0 BREAKING CHANGE, 0 feature, 4 fixes

@marpesia marpesia self-requested a review March 25, 2022 06:47
Copy link
Contributor

@marpesia marpesia left a comment

Choose a reason for hiding this comment

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

LGTM

Review Checklist

  • New code is covered by tests (if applicable)
  • Tests are running successfully (old and new ones) on my local machine (if applicable)
  • New code is respecting code style rules
  • New code is respecting best practices
  • New code is not subject to concurrency issues (if applicable)
  • Feature is working correctly on my local machine (if applicable)
  • Acceptance criteria are respected
  • Pull request title and description are meaningful
  • Pull request's target is not master
  • Commits are following conventional commits
  • Commits messages are meaningful
  • Commits are atomic
  • Changelog is updated according to changes (if applicable)
  • Documentation is updated according to changes (if applicable)

@marpesia marpesia requested a review from bziondik March 25, 2022 07:55
@marpesia marpesia merged commit 3b477d9 into develop Mar 28, 2022
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.

3 participants