Skip to content

Commit 0afe106

Browse files
committed
maint(pat-datetime-picker): Remove obsolete library comparison section from docs and fix Markdown headers.
1 parent 813c0f8 commit 0afe106

File tree

1 file changed

+5
-30
lines changed

1 file changed

+5
-30
lines changed

src/pat/datetime-picker/documentation.md

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@ for browsers which don't yet support the HTML5 date input.
99

1010
### Examples
1111

12-
####Enforcing the styled non-HTML5 picker universally.
12+
#### Enforcing the styled non-HTML5 picker universally.
1313

1414
By default this pattern will NOT defer to the browser's HTML5 picker.
1515

1616
<input class="pat-date-picker" type="date">
1717

18-
####Default value
18+
#### Default value
1919

2020
<input class="pat-date-picker" type="date" value="2015-01-01">
2121

22-
####Specifying the "min" and "max" attributes.
22+
#### Specifying the "min" and "max" attributes.
2323

2424
<input class="pat-date-picker" min="2015-01-01" max="2015-12-31" type="date">
2525

26-
####Show the week number.
26+
#### Show the week number.
2727

2828
<input class="pat-date-picker" data-pat-date-picker="week-numbers: show;" type="date">
2929

30-
####Multilingual support with German translations
30+
#### Multilingual support with German translations
3131

3232
The picker's UI can be translated by providing a URL to the `i18n` option. This
3333
URL must point to a JSON encoded resource containing the translations.
@@ -44,31 +44,6 @@ Here are all the i18n values in JSON format:
4444
"weekdaysShort": ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
4545
}
4646

47-
### Why did we base this library on Pikaday?
48-
49-
When looking for the underlying library to use for this pattern, we compared
50-
pikaday and [pickadate](https://dbushell.github.io/Pikaday/).
51-
52-
- Prefixed CSS classes
53-
54-
Pikaday's CSS classes are prefixed to make them unique, whereas Pickadate's
55-
classes are very generic and therefore prone to clash with existing classes and CSS in certain sites.
56-
57-
- Better markup
58-
59-
One of the main drawbacks of pickadate is the markup that it produces.
60-
Pickaday's special markup is inserted relative to the input element being overridden.
61-
62-
In contrast, the markup generated by pikaday is appended to the end of the
63-
`<body>` tag, and it then uses absolute positioning to position the picker.
64-
65-
This is easier to style and less prone to create problems when integrating the
66-
picker in diverse styling environments.
67-
68-
- Simpler, more modest featureset and Javascript
69-
70-
Pikaday is only 5KB compressed. The code is AMD aware and easy to read and
71-
understand.
7247

7348
### Option reference
7449

0 commit comments

Comments
 (0)