File tree Expand file tree Collapse file tree 4 files changed +7
-2
lines changed
src/client/theme-default/slots Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -4,18 +4,21 @@ import './index.less';
44
55const IconDark = ( ) => (
66 < svg viewBox = "0 0 16 16" >
7+ < title > Dark mode</ title >
78 < path d = "M8.218 1.455c3.527.109 6.327 3.018 6.327 6.545 0 3.6-2.945 6.545-6.545 6.545a6.562 6.562 0 0 1-6.036-4h.218c3.6 0 6.545-2.945 6.545-6.545 0-.91-.182-1.745-.509-2.545m0-1.455c-.473 0-.909.218-1.2.618-.29.4-.327.946-.145 1.382.254.655.4 1.31.4 2 0 2.8-2.291 5.09-5.091 5.09h-.218c-.473 0-.91.22-1.2.62-.291.4-.328.945-.146 1.38C1.891 14.074 4.764 16 8 16c4.4 0 8-3.6 8-8a7.972 7.972 0 0 0-7.745-8h-.037Z" />
89 </ svg >
910) ;
1011
1112const IconLight = ( ) => (
1213 < svg viewBox = "0 0 16 16" >
14+ < title > Light mode</ title >
1315 < path d = "M8 13a1 1 0 0 1 1 1v1a1 1 0 1 1-2 0v-1a1 1 0 0 1 1-1ZM8 3a1 1 0 0 1-1-1V1a1 1 0 1 1 2 0v1a1 1 0 0 1-1 1Zm7 4a1 1 0 1 1 0 2h-1a1 1 0 1 1 0-2h1ZM3 8a1 1 0 0 1-1 1H1a1 1 0 1 1 0-2h1a1 1 0 0 1 1 1Zm9.95 3.536.707.707a1 1 0 0 1-1.414 1.414l-.707-.707a1 1 0 0 1 1.414-1.414Zm-9.9-7.072-.707-.707a1 1 0 0 1 1.414-1.414l.707.707A1 1 0 0 1 3.05 4.464Zm9.9 0a1 1 0 0 1-1.414-1.414l.707-.707a1 1 0 0 1 1.414 1.414l-.707.707Zm-9.9 7.072a1 1 0 0 1 1.414 1.414l-.707.707a1 1 0 0 1-1.414-1.414l.707-.707ZM8 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm0 6.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5Z" />
1416 </ svg >
1517) ;
1618
1719const IconAuto = ( ) => (
1820 < svg viewBox = "0 0 16 16" >
21+ < title > Auto mode</ title >
1922 < path d = "M14.595 8a6.595 6.595 0 1 1-13.19 0 6.595 6.595 0 0 1 13.19 0ZM8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0Zm0 2.014v11.972A5.986 5.986 0 0 0 8 2.014Z" />
2023 </ svg >
2124) ;
Original file line number Diff line number Diff line change @@ -4,12 +4,14 @@ import './index.less';
44
55const IconRtl = ( ) => (
66 < svg viewBox = "0 0 14 16" >
7+ < title > Right-to-Left</ title >
78 < path d = "M5.003 6.39v3.594c0 .4.275.674.674.674.4 0 .674-.274.674-.674V1.323h1.997v8.661c0 .4.274.674.674.674s.674-.274.674-.674V1.323h3.295c.399 0 .674-.275.674-.674 0-.4-.275-.649-.674-.649H4.928C3.131 0 1.733 1.398 1.733 3.195S3.206 6.39 5.003 6.39Zm0-5.067v3.72c-1.073 0-1.922-.8-1.922-1.873s.799-1.847 1.922-1.847Zm7.988 11.332H2.73l.8-.674c.274-.2.324-.674.124-.923-.2-.275-.674-.325-.923-.125L.735 12.53c-.275.275-.4.525-.4.874 0 .325.125.674.4.874l1.997 1.597a.829.829 0 0 0 .4.125c.199 0 .398-.075.523-.275.2-.274.2-.723-.125-.923l-.998-.799h10.459c.399 0 .674-.274.674-.674 0-.424-.275-.674-.674-.674Z" />
89 </ svg >
910) ;
1011
1112const IconLtr = ( ) => (
1213 < svg viewBox = "0 0 14 16" >
14+ < title > Left-to-Right</ title >
1315 < path d = "M5.003 6.39v3.594c0 .4.275.674.674.674.4 0 .674-.274.674-.674V1.323h1.997v8.661c0 .4.274.674.674.674s.674-.274.674-.674V1.323h3.295c.399 0 .674-.275.674-.674 0-.4-.275-.649-.674-.649H4.928C3.131 0 1.733 1.398 1.733 3.195S3.206 6.39 5.003 6.39Zm0-5.067v3.72c-1.073 0-1.922-.8-1.922-1.873s.799-1.847 1.922-1.847ZM1.01 12.655h10.26l-.8-.674c-.274-.2-.324-.674-.124-.923.2-.275.674-.325.923-.125l1.997 1.597c.275.275.4.525.4.874 0 .325-.125.674-.4.874l-1.997 1.597a.829.829 0 0 1-.399.125.59.59 0 0 1-.524-.275c-.2-.274-.2-.723.125-.923l.998-.799H1.009c-.399 0-.674-.274-.674-.674 0-.424.275-.674.674-.674Z" />
1416 </ svg >
1517) ;
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ const SearchBar: FC = () => {
8181
8282 return (
8383 < div className = "dumi-default-search-bar" >
84- < IconSearch className = "dumi-default-search-bar-svg" />
84+ < IconSearch className = "dumi-default-search-bar-svg" title = "Search" />
8585 < Input
8686 onFocus = { ( ) => {
8787 setFocusing ( true ) ;
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ const SocialIcon: FC<SocialIconProps> = (props: SocialIconProps) => {
5454 href = { preset . link }
5555 rel = "noreferrer"
5656 >
57- < preset . Icon />
57+ < preset . Icon title = { icon } />
5858 </ a >
5959 ) ;
6060} ;
You can’t perform that action at this time.
0 commit comments