Skip to content

Commit

Permalink
add missing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
vursen committed Dec 20, 2024
1 parent 7730489 commit 34f7c19
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions articles/components/_input-field-common-features.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ Three different text alignments are supported: `left`, which is the default; `ce
Right-alignment is recommended for numerical values when presented in vertical groups. This tends to aid interpretation and comparison of values.
====
//end::text-alignment[]
// end::text-alignment[]


// tag::small-variant[]
Expand All @@ -239,7 +239,7 @@ Right-alignment is recommended for numerical values when presented in vertical g
====
The small variant can be used to make individual fields more compact. The default size of fields can be customized with <<{articles}/styling/lumo/lumo-style-properties#,style properties>>.
====
//end::small-variant[]
// end::small-variant[]


// tag::helper-above-field[]
Expand All @@ -249,7 +249,7 @@ The small variant can be used to make individual fields more compact. The defaul
====
The helper can be rendered above the field, and below the label.
====
//end::helper-above-field[]
// end::helper-above-field[]


// tag::borders[]
Expand All @@ -261,4 +261,4 @@ Borders can be applied to the field surface by providing a value (e.g., `1px`) t
You can override the default border color with the `--vaadin-input-field-border-color` property.
====
//end::borders[]
// end::borders[]
8 changes: 4 additions & 4 deletions articles/components/_shared-code-snippets.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ field.setAriaLabelledBy("external-label");

// Invisible label for screen readers:
field.setAriaLabel("This is the label");
//end::aria-label-java[]
// end::aria-label-java[]


// tag::aria-label-typescript[]
Expand All @@ -16,7 +16,7 @@ field.setAriaLabel("This is the label");

<!-- Invisible label for screen readers: -->
<{tag-name} accessible-name="This is the label">...
//end::aria-label-typescript[]
// end::aria-label-typescript[]



Expand All @@ -26,12 +26,12 @@ field.setAriaLabel("Meeting");
// Suffixes for sub-fields:
field.setDateAriaLabel("date"); // -> "Meeting date"
field.setDateAriaLabel("time"); // -> "Meeting time"
//end::aria-label-dtp-java[]
// end::aria-label-dtp-java[]


// tag::aria-label-dtp-typescript[]
<!-- Invisible label for screen readers: -->
<date-time-picker accessible-name="Meeting">...
<!-- Suffixes for date and time sub-fields are set through the i18n object -->
//end::aria-label-dtp-typescript[]
// end::aria-label-dtp-typescript[]

Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ public static ProductAdvancedDto fromEntity(Product product) {
);
}
}
//end::snippet[]
// end::snippet[]
// @formatter:on hidden-source-line

0 comments on commit 34f7c19

Please sign in to comment.