mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Theming API: Implement layer order
This commit is contained in:
parent
926b085060
commit
592a8ed0c4
6 changed files with 40 additions and 13 deletions
|
@ -110,6 +110,17 @@ export default {
|
|||
|
||||
return newColorScheme;
|
||||
},
|
||||
getLayerOrder(name, options = {}, defaults) {
|
||||
const { layer } = options;
|
||||
|
||||
if (layer) {
|
||||
const order = SharedUtils.object.getItemValue(layer.order || defaults.layer.order);
|
||||
|
||||
return `@layer ${order}`;
|
||||
}
|
||||
|
||||
return '';
|
||||
},
|
||||
getCommonStyleSheet(name, theme = {}, params, props = {}) {
|
||||
const { preset, base } = theme;
|
||||
const common_css = this.getCommon(preset, base, params, theme);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue