GithubHelp home page GithubHelp logo

projectblacklight / blacklight-locale_picker Goto Github PK

View Code? Open in Web Editor NEW
2.0 24.0 2.0 54 KB

A dropdown locale switcher for Blacklight apps

License: Other

Ruby 92.88% HTML 7.12%
gem ruby blacklight

blacklight-locale_picker's People

Contributors

camillevilla avatar cbeer avatar corylown avatar fjorba avatar jcoyne avatar jkeck avatar marlo-longley avatar mejackreed avatar sandbergja avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

sandbergja fjorba

blacklight-locale_picker's Issues

Rails 6 support

For what it's worth, I tried adding this to a rails 6 app, and it seems to be working okay with no changes needed (except to the .gemspec file).

Revisit screenreader behavior for locale picker

This was initially implemented as <span class="sr-only"><%= t('blacklight.toolbar.language_switch') %></span>, but we don't have translations for this yet.

What's the target string for this menu, @ggeisler @jvine ? "Change language"? "Language" might be slightly easier to source translations for because it doesn't have a verb.

Should this be an aria-label on the ul instead? An example is language picker on if-me.org

Incorrect aria syntax

The dropdown currently has the "menu" role. According to the ARIA standard, elements with the "menu" role need to have child elements with the menuitem role.

I am not an accessibility expert, but I am not sure the "menu" role is even the best fit for the dropdown, so the best option might be to just remove that role.

Syntax error

When running Arclight, the application errors because of the following syntax error

s/blacklight-locale_picker-0.1.0/app/helpers/blacklight/locale_picker/locale_helper.rb:17: syntax error, unexpected keyword_rescue, expecting keyword_end (SyntaxError)
    rescue ActionController::UrlGenerati
          ^
/Users/nikitas/.rvm/gems/ruby-2.4.4/gems/blacklight-locale_picker-0.1.0/app/helpers/blacklight/locale_picker/locale_helper.rb:17: syntax error, unexpected =>
troller::UrlGenerationError => e

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.