Prtksxna has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/271469

Change subject: NumberInputWidget: Apex: Round the correct corners in the 
disabled state
......................................................................

NumberInputWidget: Apex: Round the correct corners in the disabled state

Also add the disabled state to the demo page.

Bug: T102126
Change-Id: I7ffd19fbedf80bc108015d491f25cd4aadef78dc
---
M demos/pages/widgets.js
M src/themes/apex/widgets.less
2 files changed, 9 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/oojs/ui refs/changes/69/271469/1

diff --git a/demos/pages/widgets.js b/demos/pages/widgets.js
index 48a8d37..c9fed54 100644
--- a/demos/pages/widgets.js
+++ b/demos/pages/widgets.js
@@ -727,6 +727,13 @@
                                        }
                                ),
                                new OO.ui.FieldLayout(
+                                       new OO.ui.NumberInputWidget( { 
disabled: true } ),
+                                       {
+                                               label: 'NumberInputWidget 
(disabled)',
+                                               align: 'top'
+                                       }
+                               ),
+                               new OO.ui.FieldLayout(
                                        new OO.ui.NumberInputWidget( { min: 1, 
max: 5, isInteger: true } ),
                                        {
                                                label: 'NumberInputWidget (1–5, 
ints only)',
diff --git a/src/themes/apex/widgets.less b/src/themes/apex/widgets.less
index 6281c91..cd23beb 100644
--- a/src/themes/apex/widgets.less
+++ b/src/themes/apex/widgets.less
@@ -981,13 +981,13 @@
                width: 2.25em;
        }
 
-       &-minusButton.oo-ui-buttonElement-framed.oo-ui-widget-enabled > 
.oo-ui-buttonElement-button {
+       &-minusButton.oo-ui-buttonElement-framed > .oo-ui-buttonElement-button {
                border-top-right-radius: 0;
                border-bottom-right-radius: 0;
                border-right-width: 0;
        }
 
-       &-plusButton.oo-ui-buttonElement-framed.oo-ui-widget-enabled > 
.oo-ui-buttonElement-button {
+       &-plusButton.oo-ui-buttonElement-framed > .oo-ui-buttonElement-button {
                border-top-left-radius: 0;
                border-bottom-left-radius: 0;
                border-left-width: 0;

-- 
To view, visit https://gerrit.wikimedia.org/r/271469
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7ffd19fbedf80bc108015d491f25cd4aadef78dc
Gerrit-PatchSet: 1
Gerrit-Project: oojs/ui
Gerrit-Branch: master
Gerrit-Owner: Prtksxna <psax...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to