diff --git a/polygerrit-ui/app/elements/shared/gr-textarea/gr-textarea.html b/polygerrit-ui/app/elements/shared/gr-textarea/gr-textarea.html
index e85fe38ccf..cf39b5a365 100644
--- a/polygerrit-ui/app/elements/shared/gr-textarea/gr-textarea.html
+++ b/polygerrit-ui/app/elements/shared/gr-textarea/gr-textarea.html
@@ -41,7 +41,6 @@ limitations under the License.
display: inline-block
}
#textarea {
- background-color: var(--background-color, none);
width: 100%;
}
#hiddenText #emojiSuggestions {
diff --git a/polygerrit-ui/app/elements/shared/gr-textarea/gr-textarea.js b/polygerrit-ui/app/elements/shared/gr-textarea/gr-textarea.js
index c70dc8dfd3..a3da7d8116 100644
--- a/polygerrit-ui/app/elements/shared/gr-textarea/gr-textarea.js
+++ b/polygerrit-ui/app/elements/shared/gr-textarea/gr-textarea.js
@@ -70,10 +70,6 @@
notify: true,
observer: '_handleTextChanged',
},
- backgroundColor: {
- type: String,
- value: '#fff',
- },
hideBorder: {
type: Boolean,
value: false,
@@ -123,9 +119,6 @@
if (this.hideBorder) {
this.$.textarea.classList.add('noBorder');
}
- if (this.backgroundColor) {
- this.updateStyles({'--background-color': this.backgroundColor});
- }
},
closeDropdown() {
diff --git a/polygerrit-ui/app/elements/shared/gr-textarea/gr-textarea_test.html b/polygerrit-ui/app/elements/shared/gr-textarea/gr-textarea_test.html
index 97f8ca4b98..3a5254304a 100644
--- a/polygerrit-ui/app/elements/shared/gr-textarea/gr-textarea_test.html
+++ b/polygerrit-ui/app/elements/shared/gr-textarea/gr-textarea_test.html
@@ -25,7 +25,6 @@ limitations under the License.
-
@@ -60,15 +59,6 @@ limitations under the License.
assert.isTrue(element.$.textarea.classList.contains('noBorder'));
});
- test('background color is set properly', () => {
- assert.equal(getComputedStyle(element.$.textarea).backgroundColor,
- 'rgb(255, 255, 255)');
- element.backgroundColor = 'pink';
- element.ready();
- assert.equal(getComputedStyle(element.$.textarea).backgroundColor,
- 'rgb(255, 192, 203)');
- });
-
test('emoji selector is not open with the textarea lacks focus', () => {
element.$.textarea.selectionStart = 1;
element.$.textarea.selectionEnd = 1;
diff --git a/polygerrit-ui/app/styles/shared-styles.html b/polygerrit-ui/app/styles/shared-styles.html
index 0cb40dc14c..e9f7bcb065 100644
--- a/polygerrit-ui/app/styles/shared-styles.html
+++ b/polygerrit-ui/app/styles/shared-styles.html
@@ -35,6 +35,7 @@ limitations under the License.
}
input,
iron-autogrow-textarea {
+ background-color: inherit;
box-sizing: border-box;
margin: 0;
padding: 0;