Skip to content
Snippets Groups Projects
Unverified Commit a06fad33 authored by Evelyn Eastmond's avatar Evelyn Eastmond Committed by GitHub
Browse files

Merge pull request #3873 from evhan55/rtl/alerts

Adding RTL padding to reconnect button on alerts.
parents f8874851 1341c62c
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@
align-self: center;
}
.connection-button {
.alert-connection-button {
min-height: 2rem;
padding: 0.55rem 0.9rem;
border-radius: 0.35rem;
......@@ -68,6 +68,13 @@
display: flex;
align-items: center;
align-self: center;
margin-right: 13px;
outline-style:none;
}
[dir="ltr"] .alert-connection-button {
margin-right: 13px;
}
[dir="rtl"] .alert-connection-button {
margin-left: 13px;
}
......@@ -42,7 +42,7 @@ const AlertComponent = ({
<div className={styles.alertMessage}>
{extensionName ? (
<FormattedMessage
defaultMessage="Scratch lost connection to {extensionName}"
defaultMessage="Scratch lost connection to {extensionName}."
description="Message indicating that an extension peripheral has been disconnected"
id="gui.alerts.lostPeripheralConnection"
values={{
......@@ -55,7 +55,7 @@ const AlertComponent = ({
</div>
{showReconnect && (
<button
className={styles.connectionButton}
className={styles.alertConnectionButton}
onClick={onReconnect}
>
<FormattedMessage
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment