-
-
Notifications
You must be signed in to change notification settings - Fork 826
Manage style rules of AppTile
on CallView and StickerPicker on _AppDrawer.pcss
#10892
Conversation
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 do not think we should move all styles related to AppTile
in _AppDrawer.
Thinking about CSS architecture, _AppDrawer
should contain generic styling that is inherent to itself.
mx_CallView
is a "higher" component that consumes _AppDrawer
s, and it might need to apply some minor adjustments to it so that it fits in the context.
There is a lot of benefits in collocating this style update with inside the call view CSS file in my opinion.
I am not really seeing the benefit of approaching things the way you suggest. But would be keen to understand the rationale and the maintenance burden you've experienced
For the context, we surprisingly do not have |
I understand the intention, and I don't think we should take that direction. |
Sorry, it was not the answer to your question regarding this PR (and I forgot to tell you that of course we should create CSS files dedicated for each component after getting the clear view. Currently it is even not clear which rules should belong to which files). Regarding to this PR, I thought it was a policy that managing style rules of a component on the CSS file for the component, regardless of which component requires the style rules, because if we would take highness or lowness into consideration, then I am afraid of it that we would end up having a single mega large file, which we would definitely not want to. I am not quite sure which one is expected, and if there would be a policy about this matter. |
It all comes down to a matter of responsibilites. I do not think we will end up with larger CSS files. If I looks at your changeset .mx_CallView .mx_AppTile {
width: auto;
height: 100%;
border: none;
border-radius: inherit;
background-color: $call-background;
} There is two different responsibilities.
And I would have |
That is a fantastic idea! 👍 I'm going to check the code again to see how it could be improved. |
For element-hq/element-web#25269
This PR intends to move the rest of the CSS rules which style AppTile's components to
_AppDrawer.pcss
from the other files.type: task
Checklist
This change is marked as an internal change (Task), so will not be included in the changelog.