summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/src/com/vaadin/ui/AbstractComponent.java1
-rw-r--r--server/src/com/vaadin/ui/Label.java1
-rw-r--r--server/tests/src/com/vaadin/tests/design/all-components.html4
3 files changed, 6 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/AbstractComponent.java b/server/src/com/vaadin/ui/AbstractComponent.java
index 4d4556d4d9..358fea1bad 100644
--- a/server/src/com/vaadin/ui/AbstractComponent.java
+++ b/server/src/com/vaadin/ui/AbstractComponent.java
@@ -1199,6 +1199,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
Arrays.asList(customAttributes));
if (this instanceof Focusable) {
l.add("tab-index");
+ l.add("tabindex");
}
return l;
}
diff --git a/server/src/com/vaadin/ui/Label.java b/server/src/com/vaadin/ui/Label.java
index fc18c374b4..a6ee11bdd5 100644
--- a/server/src/com/vaadin/ui/Label.java
+++ b/server/src/com/vaadin/ui/Label.java
@@ -605,6 +605,7 @@ public class Label extends AbstractComponent implements Property<String>,
Collection<String> result = super.getCustomAttributes();
result.add("value");
result.add("content-mode");
+ result.add("plain-text");
return result;
}
diff --git a/server/tests/src/com/vaadin/tests/design/all-components.html b/server/tests/src/com/vaadin/tests/design/all-components.html
index 71aeeeaa41..683fafcf05 100644
--- a/server/tests/src/com/vaadin/tests/design/all-components.html
+++ b/server/tests/src/com/vaadin/tests/design/all-components.html
@@ -98,6 +98,10 @@
<v-button>Second slot</v-button>
</v-horizontal-split-panel>
+ <!-- label -->
+ <v-label>Hello world!</v-label>
+ <v-label>This is <b><u>Rich</u></b> content!</v-label>
+ <v-label plain-text>This is only <b>text</b> and will contain visible tags</v-label>
</v-vertical-layout>
</body>
</html>