refactor styles and structure for wompum components; improve grid spacing and layout
This commit is contained in:
1 parent
84cf190a9c
commit
80e9b781e5
8 files changed
+37
-60
No files matched your search
+2
-1
@@ -137,7 +137,8 @@ class ArticleGrid extends WompumGrid {
|
||||
else if (column >= this.gridSize.columns - facilitatorColumns) section = 'facilitator';
|
||||
else section = 'subject';
|
||||
|
||||
cell.className = 'wompum-cell';
|
||||
// Use BEM modifiers for sections
|
||||
cell.className = `wompum-cell wompum-cell--${section}`;
|
||||
cell.setAttribute('data-cell-index', i);
|
||||
cell.setAttribute('data-section', section);
|
||||
cell.setAttribute('data-column', column);
|
||||
|
||||
Reference in new issue
Block a user