You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 20, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,8 +44,9 @@ There are several ways to get started:
44
44
- Clone the repo `git clone https://github.com/antistatique/Swiss-Admin-web-guidelines.git`
45
45
46
46
47
-
## Contribution (development tools)
48
-
This is not needed to use the styleguide, only if you want to modify it to fix some bugs and contribute.
47
+
## Contribution
48
+
49
+
If you want to contribute, fix a bug or suggest a new feature, please first [create a new issue](https://github.com/swiss/styleguide/issues/new), so we can discuss it. Then, please make a Pull Request to the `dev` branch. This is important, as we use the [Git Flow](https://github.com/swiss/styleguide/issues/new) workflow. We thank you in advance for your collaboration!
- added **IDs** to label and help text, `aria-labelledby` and `role` to buttons for a better accessibility
38
38
- added `<fieldset>` and `<legend class="hidden">` around `.form-group` for a better accessibility
39
+
40
+
<br>
41
+
**2.6.0**
42
+
- added a datepicker calendar plugin as an option. Use this in your script to initiate the plugin on the fields you need. See the [official Pikaday documentation](https://github.com/dbushell/Pikaday).
43
+
44
+
```js_example
45
+
// code duplicated in footer to make the datepicker work in the styleguide
46
+
// Load Pikaday on date fields
47
+
if ($(window).width() > 767) {
48
+
49
+
$('[type=date]').each(function(){
50
+
51
+
// we need to change to type text to be able to write in another format
52
+
// Just uncomment the following line:
53
+
54
+
// $(this).prop('type', 'text');
55
+
56
+
var picker = new Pikaday({
57
+
field: $(this)[0],
58
+
format: 'YYYY-MM-DD', // must be a input[type=text] to change this, see above
0 commit comments