Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding focus styles #3

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Links: **[ilw-pagination in Builder](https://builder3.toolkit.illinois.edu/compo

This is a navigation component for paged content. This contains First, Previous, a numbered set of pages with the current page highlighted, Next, and Last.

There are no alternate themes to this.

If there are more than 8 pages, it will automatically fill in an ellipsis to mark a gap in pages.

Each item (First, Previous, Next, Last, and numbered pages) will link to the current page with a *page* parameter. You can change this parameter by using the `parameter` attribute. A page *https://illinois.edu/list/* with a pagination web component creates links like *https://illinois.edu/list?page=2*, *https://illinois.edu/list?page=3*, *https://illinois.edu/list?page=4*, etc. This component will respect other querystring items and not add a dbout *?* in the querystring.
Expand Down
2 changes: 1 addition & 1 deletion builder/ilw-pagination.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"description": "This component provides standardized styles for page counting links (First, Previous, a numbered set of pages with the current page highlighted, Next, and Last)",
"toolkit-version": "",
"production-version": "",
"development-version": "1.0.0-alpha"
"development-version": "1.0.0-alpha1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"type": "web component",
"element-name": "ilw-pagination",
"description": "This component provides standardized styles for page counting links (First, Previous, a numbered set of pages with the current page highlighted, Next, and Last)",
"version": "1.0.0-alpha",
"version": "1.0.0-alpha1",
"date": "08/19/2024",
"css": "https://dev.toolkit.illinois.edu/ilw-pagination/1.0.0-alpha/ilw-pagination.css",
"js": "https://dev.toolkit.illinois.edu/ilw-pagination/1.0.0-alpha/ilw-pagination.js",
"css": "https://dev.toolkit.illinois.edu/ilw-pagination/1.0.0-alpha1/ilw-pagination.css",
"js": "https://dev.toolkit.illinois.edu/ilw-pagination/1.0.0-alpha1/ilw-pagination.js",
"production": false,
"notes": "",
"parent-style": "",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"repository": "github:web-illinois/ilw-pagination",
"private": false,
"license": "MIT",
"version": "1.0.0-alpha",
"version": "1.0.0-alpha1",
"type": "module",
"files": [
"src/**",
Expand Down
Empty file removed src/ilw-pagination.css
Empty file.
1 change: 0 additions & 1 deletion src/ilw-pagination.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { LitElement, html } from 'lit';
import styles from './ilw-pagination.styles';
import './ilw-pagination.css';

class Pagination extends LitElement {

Expand Down
10 changes: 8 additions & 2 deletions src/ilw-pagination.styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,14 @@ a {
text-decoration: none;
color: var(--il-blue);
}
a:hover, a:focus {
background-color: #ececed;
a:hover {
background-color: var(--il-storm-lighter-3);
text-decoration: underline;
}
a:focus {
background-color: var(--ilw-link--focus-background-color);
color: var(--ilw-link--focus-color);
outline: var(--ilw-link--focus-outline);
text-decoration: underline;
}
`;