encre_css/plugins/accessibility/
mod.rs

1//! Accessibility utilities
2pub mod screen_reader;
3
4#[cfg(test)]
5mod tests {
6    use crate::{generate, utils::testing::base_config};
7
8    use pretty_assertions::assert_eq;
9
10    #[test]
11    fn screen_reader() {
12        assert_eq!(
13            &generate(["sr-only"], &base_config()),
14            ".sr-only {
15  position: absolute;
16  width: 1px;
17  height: 1px;
18  padding: 0;
19  margin: -1px;
20  overflow: hidden;
21  clip: rect(0, 0, 0, 0);
22  white-space: nowrap;
23  border-width: 0;
24}"
25        );
26    }
27}
OSZAR »