Skip to content

Commit

Permalink
refactor: apply BEM naming in FilteredAuthors component
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxjinn committed Sep 9, 2024
1 parent b41eacf commit a7658bb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
17 changes: 14 additions & 3 deletions packages/view/src/components/FilteredAuthors/FilteredAuthors.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
@import "styles/app";

.selected__author {
.filtered-authors {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 5px;
column-gap: 10px;

.filtered-authors__label {
font-size: $font-size-title;
font-weight: $font-weight-semibold;
}

.filtered-authors__author {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 5px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ const FilteredAuthors = () => {
const addedAuthors = new Set();

return (
<div className="selected">
<p>Authors:</p>
<div className="selected__author">
<div className="filtered-authors">
<p className="filtered-authors__label">Authors:</p>
<div className="filtered-authors__author">
{authSrcMap &&
selectedClusters.map((selectedCluster) => {
return selectedCluster.summary.authorNames.map((authorArray: string[]) => {
Expand Down

0 comments on commit a7658bb

Please sign in to comment.