Commit Graph

899 Commits

Author SHA1 Message Date
Santhosh Thottingal
d122f371e3 Update documentation for no-results template (#289) 2018-01-16 16:10:53 +02:00
Pl217
4545872983 Use unidirection language icon
* Use single language icon for both LTR and RTL.
* Reduce padding between icon and autonym language name.
2018-01-16 17:39:32 +05:30
Niklas Laxström
d349937772 Do not group search results by region
* Documentation updates
* Do not group search results by region
* Disable grouping by script when region grouping is disabled
* Add docs, clarify names per code review
* Fix bool -> boolean for consistency
2018-01-16 17:04:29 +05:30
Pl217
fd41bbe5e1 - Replace ULS trigger icon with monochromatic one.
- Reduce left padding between icon and language autonym name.

Phab ID: T175769
2018-01-12 19:20:11 +01:00
Santhosh Thottingal
2aa43148bb Custom no-results message support (#286)
* Custom no-results message support
* Refactoring and clean up for LanguageCategoryDisplay class
* Document the options for LanguageCategoryDisplay class
* Reduce the spreading of no results handler code
* Add an option to accept no results template
* Remove unwanted, unused constructor too
* Use CSS to hide or show the no-results view
* Remove the unwanted noresults method in jquery.uls.core, directly
  call the same method of lcd.
* Add an example
* Support a function returning jquery element as the no-result handler
2018-01-12 16:05:11 +02:00
translatewiki.net
84e82520c8 Localisation updates from https://translatewiki.net. 2018-01-11 08:03:28 +01:00
Santhosh Thottingal
d3ff6f09f2 Upgrade jquery in the example to 3.2.1 2018-01-10 15:58:50 +02:00
Santhosh Thottingal
37c9d66a2b Use .siblings to locate the suggestions, clear elements for efficiency (#285) 2018-01-10 09:13:56 +02:00
Santhosh Thottingal
bccf103900 Removing assigned ids to elements that are not guaranteed to be unique (#284)
It is a bad practice to assign id attributes when there is no guarantee
about the uniqueness of element. ULS should function even if there are
more than one instance of it is present in a page.
2018-01-09 09:47:47 +02:00
translatewiki.net
12a872dd7b Localisation updates from https://translatewiki.net. 2018-01-08 09:10:44 +01:00
Santhosh Thottingal
2a77df6c41 Use eslint and stylelint, fix all errors (#282)
* Use eslint and stylelint, fix all errors

* Remove jshint, jsbeautify
* Use Object.keys directly since that is available in all major browsers
* Fixes for eslint, stylelint errors
* stylelint is not included in grunt test yet because jquery.uls.mobile.css
  has so many !important and need to figure out whether they are really needed
2018-01-04 15:58:35 +02:00
translatewiki.net
ddadf086c5 Localisation updates from https://translatewiki.net. 2017-12-21 08:37:38 +01:00
translatewiki.net
2601f8e1b6 Localisation updates from https://translatewiki.net. 2017-12-14 08:34:52 +01:00
Niklas Laxström
1c649d6f24 Merge pull request #281 from santhoshtr/languagedata-update-december07
Update language data
2017-12-07 13:03:26 +02:00
Santhosh Thottingal
63e1b06514 Update language data
* Make Spanish available under the Oceania region
* Add the Kumyk language
2017-12-07 16:05:33 +05:30
translatewiki.net
cafaf7ea93 Localisation updates from https://translatewiki.net. 2017-12-04 09:31:07 +01:00
Niklas Laxström
98fff1b5a2 Merge pull request #280 from santhoshtr/remove-autonym
Remove autonym font and example based on it
2017-11-29 13:24:25 +02:00
Santhosh Thottingal
0da69818b9 Remove autonym font and example based on it 2017-11-29 16:36:47 +05:30
James D. Forrester
f47692a390 Drop -webkit-linear-gradient image CSS fallback
This reduces the payload of CSS slightly (and in the few cases where these
were not just present but @embed'ed, significantly), at a cost of giving
those user agents which don't support the un-prefixed rule the icons as
PNGs rather than SVGs (i.e. Chrome < 25, Safari < 6.1, Android < 4.4).

We made this change for MediaWiki back in November 2015 in T118815. This
repo is not alone in not having noticed. :-)

Change-Id: I1469bce3dd6c6eed0d291a0cb8a19eceeaff4c10
2017-11-29 15:56:04 +05:30
Santhosh Thottingal
3a453ad545 Merge pull request #276 from wikimedia/search
Improve search code
2017-11-29 15:51:16 +05:30
Niklas Laxström
7119bdff5c Ensure autofillLabel is undefined if searchApi fails 2017-11-29 10:31:55 +02:00
Kartik Mistry
9a5b3d9c36 Merge pull request #279 from wikimedia/nodejs
Update nodejs to a newer, supported version
2017-11-29 12:30:12 +05:30
Niklas Laxström
08ff5a7e18 Update nodejs to a newer, supported version 2017-11-29 08:39:22 +02:00
Niklas Laxström
82eee93dbd Improve search code
* Always use searchAPI if provided
* Clean up code flow to be easier to follow

https://phabricator.wikimedia.org/T73891
2017-11-27 14:22:01 +01:00
translatewiki.net
2f459c6f36 Localisation updates from https://translatewiki.net. 2017-11-16 11:01:07 +01:00
translatewiki.net
333c58765b Localisation updates from https://translatewiki.net. 2017-11-13 09:16:31 +01:00
translatewiki.net
74834be582 Localisation updates from https://translatewiki.net. 2017-11-06 09:08:18 +01:00
translatewiki.net
6f58e60ba8 Localisation updates from https://translatewiki.net. 2017-10-19 09:09:06 +02:00
translatewiki.net
bf8d0aa09a Localisation updates from https://translatewiki.net. 2017-10-16 10:39:31 +02:00
Niklas Laxström
aaee50ed1c Merge pull request #274 from Volker-E/master
Update `.uls-lcd-region-title` to conform to WCAG level AA
2017-10-13 10:07:51 +03:00
Niklas Laxström
2fd96dd684 Merge pull request #271 from santhoshtr/language-data-node-module
Use wikimedia/language-data node module for data
2017-10-12 14:48:27 +03:00
translatewiki.net
aefb46fe6f Localisation updates from https://translatewiki.net. 2017-10-12 08:43:04 +02:00
Santhosh Thottingal
74a4426778 Remove all tests that are already covered by language-data 2017-10-11 16:04:09 +05:30
Volker E
18a2006708 Update .uls-lcd-region-title to conform to WCAG level AA
Updating `.uls-lcd-region-title` to be on the safe side with color contrast, 
conforming to WCAG level AA no matter what `background-color` grey or `font-size`.
2017-10-09 19:45:07 -07:00
Volker E
06db9e0ff7 Merge pull request #1 from wikimedia/master
Update from origin master
2017-10-09 19:42:51 -07:00
translatewiki.net
2bcbd17e1c Localisation updates from https://translatewiki.net. 2017-10-05 07:53:45 +02:00
translatewiki.net
082ba26c47 Localisation updates from https://translatewiki.net. 2017-09-21 09:27:23 +02:00
translatewiki.net
c17d0417ae Localisation updates from https://translatewiki.net. 2017-09-18 13:25:20 +02:00
translatewiki.net
1c1dd1aa4d Localisation updates from https://translatewiki.net. 2017-09-14 07:23:49 +02:00
Santhosh Thottingal
34df56f650 Merge pull request #272 from wikimedia/fix-no-search-results
Improve how "no search results" is handled
2017-09-11 11:32:46 +05:30
translatewiki.net
0075ef59bc Localisation updates from https://translatewiki.net. 2017-09-11 07:22:31 +02:00
Niklas Laxström
4a0cca3820 Merge pull request #273 from Volker-E/master
Remove redundancy, increase contrast and improve code
2017-09-08 10:28:04 +03:00
Volker E
0ca0bd0e7b Improve CSS
Improving by merging same value selectors and aligning whitespace
2017-09-07 19:06:54 -07:00
Volker E
70eba564d8 Improve color values and CSS 2017-09-07 19:04:08 -07:00
Volker E
6c84980453 Remove redundancy, increase contrast
Removing redundancy by stripping out default values or using shorthands where applicable.
Also increasing color contrast to conform to WCAG level AA.
2017-09-07 19:01:12 -07:00
Niklas Laxström
ca550e22cd Improve how "no search results" is handled
* Drop the ugly height: 100% hack and do it properly and remove TODO
* after( $suggestions.show() ) seems to not work as expected in recent
  jQuery versions. Changed it to manipulate the presence of 'hide'
  class properly.
* Consistency fix in a comment
* Fixed a bug where creating multiple ULS instances would break the
  "no search results" functionality. This is because we were appending
  a jQuery element wrapped in a $(). This is obviously a no-op and a
  regression when the template actually was a string and not jQuery.
  Fixed by using clone() on it.

https://phabricator.wikimedia.org/T175233
2017-09-07 11:22:26 +02:00
Santhosh Thottingal
6d6a1326b5 Use wikimedia/language-data node module for data
Now that we have this node module, let us use that as upstream
for data
2017-08-28 17:46:09 +05:30
translatewiki.net
e20c81a899 Localisation updates from https://translatewiki.net. 2017-08-28 07:46:03 +02:00
translatewiki.net
581bfb2131 Localisation updates from https://translatewiki.net. 2017-08-14 08:24:13 +02:00
translatewiki.net
71959b6a7c Localisation updates from https://translatewiki.net. 2017-08-03 10:54:46 +02:00