-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Enh/beta improvements #41481
Enh/beta improvements #41481
Conversation
marcoambrosini
commented
Nov 15, 2023
•
edited
Loading
edited
- Resolves: Beta design feedback #41450
There's a problem with the starring method, it does not work. Nor in master nor in this pr. Investigating the issue |
f0b1f37
to
590e248
Compare
Those unquoted symbols don't look right @jancborchardt Making the input and comments full width, solves the issue too and tidies up things a lot:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The favorite indicator needs to show left in the subline still, no? Or is this related to your comment about the favoriting not working?
- I think the unquoted symbols are fine, the quotes are much too busy. If possible the symbols could be color-main-text (not bold) to make them stand out a bit.
- Not keeping a left gap for the avatars (and not indenting the messages) just looks off and too busy. If you look at Discord mobile for example, they also habe a gap on the left. Additionally in Talk, we sticky the avatar so on long messages you still have the context, which is great. So we should keep that. As discussed, the issue in Talk is more the space reserved for the timestamp on the right. So let's look at that separately.
yes, done! |
Do we display the favorited state now anywhere in the sidebar? If not, would that be a regression? |
Yes @szaimen, in the subline |
ah nice! Then looks good to me from the screenshots 👍 |
@@ -246,7 +261,6 @@ export default { | |||
}, | |||
compact: this.hasLowHeight || !this.fileInfo.hasPreview || this.isFullScreen, | |||
loading: this.loading, | |||
starred: this.fileInfo.isFavourited, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should then decide if we simply want to drop this in the library as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -189,7 +203,8 @@ export default { | |||
* @return {string} | |||
*/ | |||
subtitle() { | |||
return `${this.size}, ${this.time}` | |||
const starredIndicator = this.fileInfo.isFavourited ? '★ ' : '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const starredIndicator = this.fileInfo.isFavourited ? '★ ' : '' | |
const starredIndicator = this.fileInfo.isFavourited ? '⭐ ' : '' |
If we want to make it more discoverable / prominent that the file is a favorite we might want to use this instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this accessible? The grey one would meet the contrast requirements I would hope.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we would have to use an icon with alt text / aria-label, right @JuliaKirschenheuter @marcoambrosini?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well we have --icon-starred-yellow
as an icon that fulfills accessibility requirements for bright and dark mode.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem is that the NcAppSidebar only accepts a string in that subline. I suggest we add the text "favorite" beside the star, so a screen reader would read out the info too.
Contrast is ok, yes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also not possible, there it's either the switch or nothing. I suggest we go ahead with this and we modify the sidebar component so that we can slot in a proper icon there as @susnux suggests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also not possible, there it's either the switch or nothing.
Why is this not possible? Since the current solution is not accessible ("star" is not understandable as "favorite", and we can not add an aria-label) we need to do it otherwise.
Can we please do:
- Just use an icon on the top right of the filetype icon, non-interactive like in the file list
- The action to toggle it would be in the action menu, like you did here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the current solution is not accessible ("star" is not understandable as "favorite", and we can not add an aria-label) we need to do it otherwise.
I don't think that this is not accessible.
Emoji is read by a screen reader. It could be unclear that "star" means "favorite". But it is the same for all users. Any user needs to understand that "star" is "a starred file" which means "favorite".
This would be good to have a description here. But not required if we appeal to a common user experience of "starring".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, thanks for the assessment @ShGKme – then @AndyScherzinger and I would agree we should merge this as-is for now.
In the long term however it could possibly be better to have an image with aria-label which is more explicit, which we could also place on the top right of the filetype icon so it is symmetric to the files list.
Signed-off-by: Marco <marcoambrosini@icloud.com>
Signed-off-by: Marco <marcoambrosini@icloud.com>
Signed-off-by: Marco <marcoambrosini@icloud.com>
a92b23a
to
45cb11d
Compare
/compile amend / |
Signed-off-by: Marco <marcoambrosini@icloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
45cb11d
to
f476220
Compare