Skip to content

Commit

Permalink
Fix RTL support in metadata component
Browse files Browse the repository at this point in the history
  • Loading branch information
unoduetre committed Jan 30, 2025
1 parent eb40487 commit dd95ac0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
useful summary for people upgrading their application, not a replication
of the commit log.

## Unreleased

* Fix RTL support in metadata component ([PR #4596](https://github.com/alphagov/govuk_publishing_components/pull/4596))

## 51.0.0

* Remove title component margin_top option ([PR #4508](https://github.com/alphagov/govuk_publishing_components/pull/4508))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,16 @@
box-sizing: border-box;
float: left;
clear: left;
padding-left: 0;
padding-right: govuk-spacing(1);
margin-top: 0;
}
}

.direction-rtl .gem-c-metadata .gem-c-metadata__term,
.gem-c-metadata.direction-rtl .gem-c-metadata__term {
float: inline-start;
clear: inline-start;

.direction-rtl .gem-c-metadata__term {
@include govuk-media-query($from: tablet) {
float: right;
clear: right;
padding-left: govuk-spacing(1);
padding-right: 0;
}
Expand All @@ -85,11 +84,6 @@
}
}

.direction-rtl .gem-c-metadata .gem-c-metadata__definition,
.gem-c-metadata.direction-rtl .gem-c-metadata__definition {
float: inline-start;
}

.gem-c-metadata__toggle-wrap {
display: none;
}
Expand Down

0 comments on commit dd95ac0

Please sign in to comment.