Skip to content

Commit

Permalink
Clockpicker better styling
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Jan 30, 2024
1 parent 06336b6 commit ec7849a
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,16 @@ private void encodeMarkup(FacesContext context, ClockPicker clockPicker, final S
writer.writeAttribute("id", inputId, null);
writer.writeAttribute("name", inputId, null);
writer.writeAttribute("type", "text", null);
writer.writeAttribute("class", "ui-inputfield ui-widget ui-state-default ui-corner-all", null);
writer.writeAttribute("size", inputSize, null);
writer.writeAttribute("maxlength", inputSize, null);

final String styleClass = createStyleClass(clockPicker, "ui-inputfield ui-widget ui-state-default ui-corner-all");
writer.writeAttribute(Attrs.CLASS, styleClass, null);

if (clockPicker.getStyle() != null) {
writer.writeAttribute(Attrs.STYLE, clockPicker.getStyle(), null);
}

if (LangUtils.isNotBlank(value)) {
writer.writeAttribute("value", value, null);
}
Expand Down

0 comments on commit ec7849a

Please sign in to comment.