Banner
A banner displays a prominent message at the top of the screen.
Installation
yarn add @atlaskit/banner
Usage
Detailed docs and example usage can be found here.
A banner displays a prominent message at the top of the screen.
A banner displays a prominent message at the top of the screen.
yarn add @atlaskit/banner
Detailed docs and example usage can be found here.
1a88e6e2601ae
-
Migrated usage of renamed/deprecated icons1378ea7a99ce1
-
Upgrades jscodeshift
to handle generics properly.b2d69a39e6687
-
Update @compiled/react
dependency for improved type checking support.#122255
63035cd95a9b6
-
Migrated from @emotion/react
to @compiled/react
in order to improve performance, align with
the rest of the Atlaskit techstack, and support React 18 Streaming SSR.Please note, in order to
use this version of @atlaskit/banner
, you will need to ensure that your bundler is configured to
handle .css
imports correctly.
Most bundlers come with built-in support for .css
imports, so you may notneed to do anything. If
you are using a different bundler, please refer to the documentation for that bundler to
understand how to handle .css
imports.
For more information on the migration,please refer to RFC-73 Migrating our components toCompiledCSS-in-JS
#117363
10a0f7f6c2027
-
This package's peerDependencies
have been adjusted for react
and/or react-dom
to reflect the
status of only supporting React 18 going forward. No explicit breaking change to React support has
been made in this release, but this is to signify going forward, breaking changes for React 16 or
React 17 may come via non-major semver releases.
Please refer this community post for more details: https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026
903f80ca96378
-
Remove old codemods.4660ec858a305
-
Update React
from v16 to v186164734c98d37
-
Update dev dependencies.9f62ecec4d422
-
Update dependencies.57c3a8cc3de44
-
Wrap icons so they're centered in a 24px container, to support new, smaller icons57f451bda8919
-
Adds side-effect config to support Compiled css extraction in third-party apps#127511
db30e29344013
-
Widening range of react
and react-dom
peer dependencies from ^16.8.0 || ^17.0.0 || ~18.2.0
to the wider range of ^16.8.0 || ^17.0.0 || ^18.0.0` (where applicable).
This change has been done to enable usage of `react@18.3as well as to have a consistent peer
dependency range for
reactand
react-domfor
/platform` packages.
23e8fb2847948
-
Internal changes to typography, no visual changes.20c2d58f6f8a9
-
Explicitly set jsxRuntime to classic via pragma comments in order to avoid issues where jsxRuntime
is implicitly set to automatic.72b98b3602fd
-
[ux] Change internal CSS and update height to be in rem.83d49a88b5eb
-
Add support for React 18 in non-strict mode.9516860b7490
-
Export BannerProps from Banner component8d4e99057fe0
-
Upgrade Typescript from 4.9.5
to 5.4.2
07aa588c8a4
- Reverts
the fix to text descender cut-off, due to incompatibilities with Firefox and Safari.9af31f3c1ae
- Delete
version.json56b444b56a8
- Fix a
bug where text descenders were cut off at high zoom levels on Windows1ed303de3e8
- Updated
dependencies95401cac781
- Internal
change to component composition. There is no expected change.4ae083a7e66
- Use
@af/accessibility-testing
for default jest-axe config and jest-axe import in accessibility
testing.7e4085cd951
- Allow
caret version range in @atlaskit/primitives dependency.529814693a1
- Pin
version of @atlaskit/primitives so it resolves to correct versionb8b41649492
- Update
how certain background colors are referenced by name. Internal changes only.779727e307a
- Internal
change only. Replace all instances of Box with stable @atlaskit/primitives version.b95cc173965
- Moves
banner to continuous releases and push model consumption - no code changes9d00501a414
- Ensure
legacy types are published for TS 4.5-4.841fae2c6f68
- Upgrade
Typescript from 4.5.5
to 4.9.5
56507598609
- Skip
minor dependency bump2e01c9c74b5
- DUMMY
remove before merging to master; dupe adf-schema via adf-utils699a5048af2
- [ux]
Removes inaccurate role, tabindex, and aria-label from announcement banners.b6c5779d358
- Internal
changes only to restrict usage of Box
from the primitives package.6d665548890
- Update
usages of Inline and Stack to make use of stable version in @atlaskit/primitives
. Internal
change only.eadbf13d8c0
- Updated
usages of Text
, Box
, Stack
, and Inline
primitives to reflect their updated APIs. There are
no visual or behaviour changes.acb689ac0da
- Change
to an example available on atlassian.design so it does not use internal components.f7b2dbd6eba
- Replace
truncation styles with new Text shouldTruncate
prop. No change in behaviour.ace7aad3603
- Visual
fix to padding on banner container to match grid system. This affects the height of the banner
(previously 52px => now 48px). There is no expected behavior change.7c6009de2f1
- [ux]
Updates the visual appearance to match the legacy light mode palette.e35fc41dc33
- Internal
change to use updated primtive spacing prop values. No expected behaviour change.bc989043572
- Internal
changes to apply spacing tokens. This should be a no-op change.6f834df2eab
- Removed
isOpen
and innerRef
props. Banner is now displayed by default - use conditional rendering to
achieve the same behaviour as isOpen
.e9b3ce1794d
- Updates
@emotion/core
to @emotion/react
; v10 to v11. There is no expected behavior change.b0418893d72
- Updates
@emotion/core
to @emotion/react
; v10 to v11. There is no expected behavior change.5f07e7b56a2
- Updates
to the public types to better reflect the actual API.8cc2f888c83
- Upgrade
Typescript from 4.3.5
to 4.5.5
8d4228767b0
- Upgrade
Typescript from 4.2.4
to 4.3.5
.a19199a0c68
- Mark
isOpen
and innerRef
props on @atlaskit/banner as deprecated.52f9dc8a972
- [ux]
Change text to be left-aligned and span the whole width of banner. Remove possibility of
multi-line banners with announcement appearance.46ea9efa81e
- [ux]
Remove open/close animation. Restructure component to reduce nested divs.9fd5ab9a6b4
- Refactor
dynamic styles that rely on appearance8da8f216d84
- Memoize
getA11yProps() function and clean up a11y unit tests.05872fbd60e
- Convert
from class component to a functional component. Migrate unit tests from enzyme to RTL.7952548ec4a
- Revert
changes made to DOM structure and refscb2392f6d33
- Upgrade
to TypeScript 4.2.458884c2f6c1
- Internal
code change turning on a new linting rule.19d72473dfb
- Updates
usage of deprecated token names so they're aligned with the latest naming conventions. No UI or
visual changesf460cc7c411
- Builds
for this package now pass through a tokens babel plugin, removing runtime invocations of the
tokens() function and improving bundle size.#13302
d92ab6985e4
-
Instrumented Banner with the new theming package, @atlaskit/tokens
.
Tokens will be visible only in applications configured to use the new Tokens API (currently in alpha).These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
af4bca32ad4
- Internal
changes to supress eslint rules.b6b4c4100cd
- Updates
high contrast css declarations to use system color tokens + generic media query33f360c4517
- Changed
styled-components of Banner to emotion.0d0ecc6e790
- Corrects
eslint supressions.8279380176b
- Internal
code changes.378d1cef00f
- Bump
@atlaskit/theme
to version ^11.3.0
.c7319dcdea9
- Added
the design system tech stacks to the package.json and fixed linting errors, also disabled some
linting rules to prevent breaking changese7034163b66
- Added
the design-system
tech stacks to the package.json
262bfb58dcd
- [ux] Add
focus opportunity for Banner with announcement appearance2b5927de4d4
- Added
support for Windows high contrast mode for Banner Icon4f9e6e2db5
- These
packages now have defined entry points -- this means that you cannot access internal files in the
packages that are not meant to be public. Sub-components in these packages have been explicitly
defined, aiding tree-shaking and reducing bundle size.d3265f19be
- Transpile
packages using babel rather than tsc5f58283e1f
- Export
types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules
compiler option. This requires version 3.8 of Typescript, read more about how we handle Typescript
versions here: https://atlaskit.atlassian.com/get-started Also add typescript
to
devDependencies
to denote version that the package was built with.6360c46009
- Reenable
integration tests for Edge browser#3885
6c525a8229
- Upgraded
to TypeScript 3.9.6 and tslib to 2.0.0
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade to prevent duplicates of tslib being bundled.
954cc87b62
- The readme
and package information has been updated to point to the new design system website.87f4720f27
- Officially
dropping IE11 support, from this version onwards there are no warranties of the package working in
IE11. For more information see:
https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/3953454a9514fcf
- Build and
supporting files will no longer be published to npm[patch]c21a796623:
Change imports to comply with Atlassian conventions- Updated dependencies 6b8e60827e:
Updated dependencies 449ef134b3:
[patch]6548261c9a:
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies 6548261c9a:
[patch]4a223473c5:
Removes babel/runtime from dependencies. Users should see a smaller bundlesize as a result- Updated dependencies 28f8f0e089:
Updated dependencies 82747f2922:
[patch]d222c2b987:
Theme has been converted to Typescript. Typescript consumers will now get static type safety. Flow types are no longer provided.
** getTokens props changes ** When defining the value function passed into a ThemeProvider, the
getTokens parameter cannot be called without props; if no props are provided an empty object {}
must be passed in:
<CustomTheme.Provider
value={t => ({ ...t(), backgroundColor: '#333'})}
>
becomes:
<CustomTheme.Provider
value={t => ({ ...t({}), backgroundColor: '#333'})}
>
** Color palette changes ** Color palettes have been moved into their own file. Users will need to update imports from this:
import { colors } from '@atlaskit/theme';
colors.colorPalette('8');
to this:
import { colorPalette } from '@atlaskit/theme';
colorPalette.colorPalette('8');
or for multi entry-point users:
import * as colors from '@atlaskit/theme/colors';
colors.colorPalette('8');
to this:
import * as colorPalettes from '@atlaskit/theme/color-palette';
colorPalettes.colorPalette('8');
[patch]35d2229b2a:
Adding missing license to packages and update to Copyright 2019 Atlassian Pty Ltd.
[minor]062d440e97:
Adding an optional prop testId
that will set the attribute value data-testid
. It will help
products to write better integration and end to end tests.
[patch]097b696613:
Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving non-relative imports as relative imports
[patch]ecca4d1dbb:
Upgraded Typescript to 3.3.x
[patch]708028db86:
Change all the imports to theme in Core to use multi entry points
[patch]de35ce8c67:
Updates component maintainers
[patch]f34776be97:
Type definition files are now referenced in package.json
[patch]bbff8a7d87:
Fixes bug, missing version.json file
[patch]18dfac7332:
In this PR, we are:
[patch]29a1f158c1:
Use default react import in typescript files.
[patch]93bcf314c6:
Added missing tslib dep
[patch]c9c5d026b1:
[major]7c17b35107:
[patch]50e8c82ec4:
[major]1433f91820:
[patch]98e11001ff:
[major]76299208e6:
As a breaking change, all @atlaskit packages will be dropping cjs distributions and will only
distribute esm. This means all distributed code will be transpiled, but will still contain
import
and export
declarations.
The major reason for doing this is to allow us to support multiple entry points in packages, e.g:
import colors from `@atlaskit/theme/colors`;
Previously this was sort of possible for consumers by doing something like:
import colors from `@atlaskit/theme/dist/esm/colors`;
This has a couple of issues. 1, it treats the file system as API making internal refactors harder, we have to worry about how consumers might be using things that aren't actually supposed to be used. 2. We are unable to do this internally in @atlaskit packages. This leads to lots of packages bundling all of theme, just to use a single color, especially in situations where tree shaking fails.
To support being able to use multiple entrypoints internally, we unfortunately cannot have multiple distributions as they would need to have very different imports from of their own internal dependencies.
ES Modules are widely supported by all modern bundlers and can be worked around in node environments.
We may choose to revisit this solution in the future if we find any unintended condequences, but we see this as a pretty sane path forward which should lead to some major bundle size decreases, saner API's and simpler package architecture.
Please reach out to #fabric-build (if in Atlassian) or create an issue in Design System Support (for external) if you have any questions or queries about this.