Simple forum software for building great communities.
Go to file
David Wheatley eaf1b86785
fix(a11y): add focus traps to modals and nav drawer (#3018)
* Add focus trap util

* Add focus trap to Modals

Fixes #2663

* Split tab press into `onTab` handler

* Remove deprecated code

* Use requestAnimationFrame instead of setTimeout

* Reduce code duplication

* Implement focus trap in nav drawer

Fixes #2665

* Hide drawer when window is resized to be bigger

Fixes issue where focus trap would remain on the drawer when it is
just the app header, if the drawer was opened then the window was
made larger.

* Simplify conditional function calls

* Fix modal focus trap

* Remove debug code

* Simplify resize handler conditional statements

* Add info about reasoning of resize handler

* Prefer native JS methods over jQuery

* Update conditional function call to handle `undefined`

* Expose screen sizes as CSS custom properties

* Use `window.matchMedia` rather than resize handler

* Fix spelling error

Co-authored-by: David Sevilla Martin <me@datitisev.me>

* Remove breaking change

Co-authored-by: David Sevilla Martin <me@datitisev.me>
2021-11-21 19:44:31 +00:00
.github Add typechecks, typescript coverage GH action, fix many type errors (#3136) 2021-11-11 14:17:22 -05:00
js fix(a11y): add focus traps to modals and nav drawer (#3018) 2021-11-21 19:44:31 +00:00
less fix(a11y): add focus traps to modals and nav drawer (#3018) 2021-11-21 19:44:31 +00:00
locale Add 'Close' & 'Back' aria-label attributes to buttons. (#3161) 2021-11-11 15:55:46 -05:00
migrations Remove LIKE and raw from viewUserList rename 2021-06-28 11:58:23 +02:00
src Add integration tests for settings API endpoint 2021-11-16 16:48:09 -05:00
tests Fix test cases for SetSettingsController 2021-11-16 16:54:23 -05:00
views Add missing autocomplete attributes to input fields (#3088) 2021-10-13 14:53:35 -04:00
.editorconfig Laravel components v8 (#2576) 2021-03-05 09:43:35 -05:00
.gitattributes Mark typings as generated code (#2886) 2021-06-07 13:12:43 +01:00
.gitignore Add typechecks, typescript coverage GH action, fix many type errors (#3136) 2021-11-11 14:17:22 -05:00
.styleci.yml Drop the generate:migration command (#2686) 2021-03-16 12:41:07 -04:00
CHANGELOG.md Release v1.1.0 2021-10-11 21:19:05 -04:00
composer.json Update composer.json 2021-07-26 13:02:33 +02:00
LICENSE Update copyright year 2021-05-15 00:45:09 +01:00
README.md huntr.dev as first point for security vuln (#2918) 2021-06-10 16:26:40 +02:00

PHP Tests Total Downloads Latest Version License huntr StyleCI

About Flarum

Flarum is a delightfully simple discussion platform for your website. It's fast and easy to use, with all the features you need to run a successful community. It is designed to be:

  • Fast and simple. No clutter, no bloat, no complex dependencies. Flarum is built with PHP so its quick and easy to deploy. The interface is powered by Mithril, a performant JavaScript framework with a tiny footprint.

  • Beautiful and responsive. This is forum software for humans. Flarum is carefully designed to be consistent and intuitive across platforms, out-of-the-box.

  • Powerful and extensible. Customize, extend, and integrate Flarum to suit your community. Flarums architecture is amazingly flexible, with a powerful Extension API.

Installation

This repository contains Flarum's core code. If you want to set up a forum, visit the Flarum skeleton repository.

Contributing

Thank you for considering contributing to Flarum! Please read the Contributing guide to learn how you can help.

Security Vulnerabilities

If you discover a security vulnerability within Flarum, please send an e-mail to security@flarum.org. All security vulnerabilities will be promptly addressed. More details can be found in our security policy.

License

Flarum is open-source software licensed under the MIT License.