You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2021/04/08 13:00:59 UTC
[myfaces-tobago] branch master updated: fix: style of
This is an automated email from the ASF dual-hosted git repository.
lofwyr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
The following commit(s) were added to refs/heads/master by this push:
new fd8ef74 fix: style of <tc:range>
fd8ef74 is described below
commit fd8ef74ccb5d8858723da205fe79098e20bdb2b8
Author: Udo Schnurpfeil <ud...@irian.eu>
AuthorDate: Thu Apr 8 14:04:30 2021 +0200
fix: style of <tc:range>
issue: TOBAGO-1840
---
.../myfaces/tobago/internal/renderkit/renderer/RangeRenderer.java | 2 +-
.../java/org/apache/myfaces/tobago/renderkit/css/BootstrapClass.java | 1 +
tobago-core/src/test/resources/renderer/range/range-label.html | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/RangeRenderer.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/RangeRenderer.java
index acf42d9..2ce1477 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/RangeRenderer.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/RangeRenderer.java
@@ -89,7 +89,7 @@ public class RangeRenderer<T extends AbstractUIRange> extends MessageLayoutRende
writer.writeClassAttribute(
rendererCssClass,
BootstrapClass.borderColor(ComponentUtils.getMaximumSeverity(component)),
- BootstrapClass.FORM_CONTROL,
+ BootstrapClass.FORM_RANGE,
component.getCustomClass());
renderFocus(clientId, component.isFocus(), component.isError(), facesContext, writer);
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/css/BootstrapClass.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/css/BootstrapClass.java
index 45797d3..2b1b2b6 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/css/BootstrapClass.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/css/BootstrapClass.java
@@ -361,6 +361,7 @@ public enum BootstrapClass implements CssItem {
*/
@Deprecated
FORM_INLINE("form-inline"),
+ FORM_RANGE("form-range"),
FORM_SELECT("form-select"),
FORM_SWITCH("form-switch"),
FST_ITALIC("fst-italic"),
diff --git a/tobago-core/src/test/resources/renderer/range/range-label.html b/tobago-core/src/test/resources/renderer/range/range-label.html
index 296f52b..30dd05f 100644
--- a/tobago-core/src/test/resources/renderer/range/range-label.html
+++ b/tobago-core/src/test/resources/renderer/range/range-label.html
@@ -17,5 +17,5 @@
<tobago-range id='id' class='tobago-label-container tobago-auto-spacing'>
<label for='id::field' class='col-form-label'>label</label>
- <input type='range' name='id' id='id::field' min='0' max='100' step='1' class='tobago-in form-control'>
+ <input type='range' name='id' id='id::field' min='0' max='100' step='1' class='tobago-in form-range'>
</tobago-range>