Re: Inconsistent description of attributes on <label> etc.

Do you mean:

1. Should <alert> support @appearance at all?
2. Or should <alert appearance="minimal"> mean the same thing as for
<label> and <hint>?

I think <alert> and <help> too should support @appearance, but we
don't have to specify a behavior for <alert appearance="minimal">.

The reason <label appearance="minimal"> and <hint
appearance="minimal"> work if they produce HTML placeholders is that
it's ok if the label or hint disappears once the user starts typing.
But for alert, it's not ok: if you have an invalid value and you
cannot see the alert message, it's always pointless. It would only
makes sense if the alert shows only when the control value is empty.

-Erik

On Wed, Apr 9, 2014 at 8:37 AM, Steven Pemberton
<Steven.Pemberton@cwi.nl> wrote:
> But not <alert>?
>
> Steven
>
>
> On Wed, 09 Apr 2014 17:05:17 +0200, Erik Bruchez <erik@bruchez.org> wrote:
>
>> Yes, it should be UI Common.
>>
>> The idea was, for hint and label, to support `appearance="minimal"`.
>> There is an example for hint in the spec:
>>
>>     <hint appearance="minimal">Last, First</hint>
>>
>> It does make sense to have this too:
>>
>>     <label appearance="minimal">
>>
>> Like for hint, the label should/could then be rendered as a
>> placeholder. Maybe the spec should provide an example too.
>>
>> -Erik
>>
>> On Wed, Apr 9, 2014 at 3:26 AM, Steven Pemberton
>> <Steven.Pemberton@cwi.nl> wrote:
>>>
>>> Section 8.1
>>>
>>> https://www.w3.org/MarkUp/Forms/wiki/XForms_2.0#The_XForms_Core_Form_Controls_Module
>>> says that <label> etc have as attribute sets: Common, Single Item Binding
>>> (author-optional)
>>>
>>> But section 8.2.1
>>> https://www.w3.org/MarkUp/Forms/wiki/XForms_2.0#ui-commonelems-label
>>> says that they have Common Attributes: Common, UI Common, Single Item
>>> Binding (author-optional)
>>>
>>> So which is right? Can you say <label appearance="full"> or not?
>>>
>>> Steven

Received on Wednesday, 9 April 2014 17:00:29 UTC