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

Update access control banner docs #154

Merged
merged 1 commit into from
Oct 14, 2024
Merged
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
18 changes: 9 additions & 9 deletions docs/components/access-control-banner.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Access Control Banner
# Access control banner

Access Control Banners are used to display information about the page access restrictions.
They are an enhancement of the banner component, and thus are placed in a `.global-header` element.
Access control banners are used to display information about the page access restrictions. They are an enhancement of the banner that is found within the [header component](header.md), and thus are placed inside `<header class="global-header">`.

Different types of access control banners are available:
- `access-control-banner--member` - for member-only pages
- `access-control-banner--team` - for team-only pages
- `access-control-banner--user` - for pages restricted to the current user
- `access-control-banner--private` - for other access control restrictions
Different types of access control banners are available, using different classes:

<example title="Access Control" src="components/access-control.html.twig" />
- `.banner--access-control.acl-member` - for member-only pages
- `.banner--access-control.acl-team` - for team-only pages
- `.banner--access-control.acl-user` - for pages restricted to the current user
- `.banner--access-control.acl-private` - for other access control restrictions

<example title="Access Control" src="components/access-control.html.twig" />