Skip to content

Commit

Permalink
Merge pull request #154 from w3c/hotfix/i649-correct-banner-classes
Browse files Browse the repository at this point in the history
Update access control banner docs
  • Loading branch information
jean-gui authored Oct 14, 2024
2 parents be3cea4 + 97b52e0 commit 90b3baf
Showing 1 changed file with 9 additions and 9 deletions.
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" />

0 comments on commit 90b3baf

Please sign in to comment.