Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6036)

Unified Diff: chrome/browser/resources/settings/settings_shared_css.html

Issue 2390053002: [MD settings] use arrow-forward to switch direction in rtl (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/settings_shared_css.html
diff --git a/chrome/browser/resources/settings/settings_shared_css.html b/chrome/browser/resources/settings/settings_shared_css.html
index ac07ddc534e076e18169b93844941aac003c483e..298ac98e5508111c2f3bb056ab0d1a41f0007b3a 100644
--- a/chrome/browser/resources/settings/settings_shared_css.html
+++ b/chrome/browser/resources/settings/settings_shared_css.html
@@ -6,21 +6,21 @@
<template>
<style include="cr-shared-style">
button[is='paper-icon-button-light'] {
- --paper-icon-button-light-ripple: {
- /* Center the ripple on the icon button. */
- height: 36px;
- left: -8px;
- top: -8px;
- width: 36px;
- };
+ -webkit-margin-end: -8px; /* Allow ripple to overlap the end. */
-webkit-margin-start: 16px;
- background-size: cover;
+ background-position: center;
+ background-repeat: no-repeat;
+ background-size: var(--settings-icon-size);
flex-shrink: 0;
- height: 20px;
- width: 20px;
+ height: var(--settings-icon-ripple-size);
+ width: var(--settings-icon-ripple-size);
+ }
+
+ :host-context([dir=rtl]) button[is='paper-icon-button-light'] {
+ transform: scaleX(-1); /* Flip on the X axis (aka mirror). */
}
- [actionable] button[is="paper-icon-button-light"].icon-arrow-right {
+ [actionable] button[is="paper-icon-button-light"].subpage-arrow {
background-image: url(images/arrow_right.svg);
}

Powered by Google App Engine
This is Rietveld 408576698