mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 10:20:02 +07:00
chore: Add upgrade guide for border radius CSS variables
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
@@ -37,12 +37,12 @@ The size of the CSS variable ``--clickable-area`` variable has shrunk from ``44p
|
||||
This will result in several regressions and paper-cuts in your app that will need to be manually fixed.
|
||||
It's recommended to:
|
||||
|
||||
1) Link the @nextcloud/vue current master to your app (pull often cause fixes are getting in there too);
|
||||
1) Link the ``@nextcloud/vue`` current master to your app (pull often cause fixes are getting in there too);
|
||||
2) Do a codebase-wide search of `44px` and replace with the variable `--default-clickable-area` if appropriate;
|
||||
3) Check for regressions and visual bugs;
|
||||
4) Report the regression of your app in this issue (you can create a heading with the name of your own app);
|
||||
5) Also report @nextlcoud/vue library regressions if they're not reported already in their list;
|
||||
6) Fix regression in your app (only the ones that are unrelated to the @nextcloud/vue components);
|
||||
5) Also report ``@nextlcoud/vue`` library regressions if they're not reported already in their list;
|
||||
6) Fix regression in your app (only the ones that are unrelated to the ``@nextcloud/vue`` components);
|
||||
|
||||
Line height
|
||||
^^^^^^^^^^^
|
||||
@@ -58,6 +58,25 @@ Nextcloud now provides meaningful default styles for heading elements.
|
||||
This can cause visual regressions if your code does not explicitly set font size and weight.
|
||||
If you need to use heading elements outside of text content, you might need to adjust their styles.
|
||||
|
||||
Border radius
|
||||
^^^^^^^^^^^^^
|
||||
|
||||
The border radius CSS variables have been refactored:
|
||||
|
||||
- Added
|
||||
|
||||
- ``--border-radius-small`` was added for smaller elements like chips.
|
||||
- ``--border-radius-container`` was added for smaller containers like action menus.
|
||||
- ``--border-radius-container-large`` was added for larger containers like body or modals.
|
||||
- ``--border-radius-element`` was added for interactive elements such as buttons, input, navigation and list items.
|
||||
|
||||
- Deprecated
|
||||
|
||||
- ``--border-radius`` is deprecated now in favor of ``--border-radius-small``.
|
||||
- ``--border-radius-large`` is deprecated now in favor of ``--border-radius-element``.
|
||||
- ``--border-radius-pill`` is deprecated now in favor of ``--border-radius-element``.
|
||||
- ``--border-radius-rounded`` is deprecated now in favor of ``--border-radius-container``.
|
||||
|
||||
Added APIs
|
||||
^^^^^^^^^^
|
||||
|
||||
|
||||
Reference in New Issue
Block a user