All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
Note: Version bump only for package @react-md/avatar
Note: Version bump only for package @react-md/avatar
Note: Version bump only for package @react-md/avatar
Note: Version bump only for package @react-md/avatar
eslint
(8111cd3)stylelint
(22d1598)prop-types
package.yarn format
to include new files
(48d3d7f)Note: Version bump only for package @react-md/avatar
Note: Version bump only for package @react-md/avatar
Note: Version bump only for package @react-md/avatar
typedoc
(cf54c35)Note: Version bump only for package @react-md/avatar
Note: Version bump only for package @react-md/avatar
Note: Version bump only for package @react-md/avatar
Note: Version bump only for package @react-md/avatar
Note: Version bump only for package @react-md/avatar
Note: Version bump only for package @react-md/avatar
Note: Version bump only for package @react-md/avatar
Note: Version bump only for package @react-md/avatar
Note: Version bump only for package @react-md/avatar
Note: Version bump only for package @react-md/avatar
Note: Version bump only for package @react-md/avatar
Note: Version bump only for package @react-md/avatar
<img>
(11848ee),
closes #908Note: Version bump only for package @react-md/avatar
Note: Version bump only for package @react-md/avatar
Note: Version bump only for package @react-md/avatar
sideEffects
field to package.json
(31820b9)sideEffects
formatting
(78a7b6b)No changes.
The avatar component should be fairly similar to the v1 version except for a few behavior changes.
Avatar
is now rendered as a <span>
instead of a <div>
ref
is correctly forwarded to the <span>
elementchildren
no longer needs to be wrapped in an additional <div>
for
stylingalt
tag will be defaulted to the empty string if the src
tag is
provided for convenienceicon
prop since icons should just be rendered as the
children
for the Avatar
random
and suffixes
props since it did not work for
SSRsuffix
prop was renamed to color
iconSized
prop was removed since the new CSS variable theming API should
be used insteadcontentStyle
and contentClassName
props were removed since they are no
longer required$rmd-avatar-colors
- a map of all the colors to generate by default that
have been updated to support minimal contrast ratio accessibility checks.$rmd-avatar-font-size: 1.5rem !default
- the font size to apply to avatars
when displaying text$rmd-avatar-line-height: rmd-typography-value(subtitle-1, line-height) !default
-
the line-height to apply to avatars when displaying text@function rmd-avatar-theme
- gets one of the theme values and validates that
the theme name is valid@function rmd-avatar-theme-var
- gets one of the theme values as a css
variable with a fallback value and validates that the theme name is valid@mixin rmd-avatar-theme
- applies one of the theme values to a css property
as a css variable@mixin rmd-avatar-theme-update-var
- updates one of the theme values as a
css variable$md-avatar-default-background
to $rmd-avatar-background-color
$md-avatar-default-color
to $rmd-avatar-color
$md-avatar-border-color
to $rmd-avatar-border-color
and changed
the default value from null
to
rgba(if(rmd-theme-tone($rmd-theme-background) == light, $rmd-black-base, $rmd-white-base), 0.12)
$md-avatar-size
to $rmd-avatar-size
and changed the default value
from 40px
to 2.5rem
$md-avatar-icon-sized
was removed since it is no longer required$md-avatar-include-suffixes
and $md-avatar-colors
since the colors
are now handled by the $rmd-avatar-colors
variablereact-md-theme-avatars
and react-md-theme-vatar
since they are no
longer requiredreact-md-avatar-media
since avatars no longer automatically updated
based on media queries and instead are updated through CSS Variables