1212 to the <router-link to =" /Media/News/Blogs" >Blogs</router-link > page.
1313 </p >
1414 <div class =" has-text-right pb-4" >
15- <button class =" button cve-button" @click =" toggleAccordianAll ()" >
16- {{accordian .length > 1 ? 'Collapse All' : 'Expand All'}}
15+ <button class =" button cve-button" @click =" toggleAccordionAll ()" >
16+ {{accordion .length > 1 ? 'Collapse All' : 'Expand All'}}
1717 </button >
1818 </div >
19- <section class =" cve-accordian " >
19+ <section class =" cve-accordion " >
2020 <div v-for =" (archiveYear, index) in Object.keys(sortedEntries).sort(function(a,b){return b-a})"
2121 :key =" index" class =" message" >
2222 <div class =" message-header cve-base-light-gray-borders-bg" >
2323 <p class =" message-label has-text-weight-bold" style =" margin-top : auto ; margin-bottom : auto ;" >
2424 {{archiveYear}}
2525 </p >
26- <button class =" button" @click =" toggleAccordianItem (archiveYear)"
27- :aria-expanded =" !accordian .includes(archiveYear) ? 'true' : 'false'"
26+ <button class =" button" @click =" toggleAccordionItem (archiveYear)"
27+ :aria-expanded =" !accordion .includes(archiveYear) ? 'true' : 'false'"
2828 :aria-controls =" archiveYear" >
2929 <span class =" icon is-small" >
3030 <p :id =" archiveYear + '-alttext'" class =" is-hidden" >
31- {{accordian .includes(archiveYear) ? 'collapse' : 'expand'}}
31+ {{accordion .includes(archiveYear) ? 'collapse' : 'expand'}}
3232 </p >
33- <font-awesome-icon :icon =" accordian .includes(archiveYear) ? 'plus' : 'minus'"
33+ <font-awesome-icon :icon =" accordion .includes(archiveYear) ? 'plus' : 'minus'"
3434 aria-hidden =" false" focusable =" true" :aria-labelledby =" archiveYear + '-alttext'" />
3535 </span >
3636 </button >
3737 </div >
38- <div class =" message-body" v-show =" accordian .includes(archiveYear)" :id =" archiveYear" >
38+ <div class =" message-body" v-show =" accordion .includes(archiveYear)" :id =" archiveYear" >
3939 <div class =" table-container" :id =" archiveYear" >
4040 <table class =" table is-striped is-hoverable cve-border-dark-blue cve-border-bottom-unset" >
4141 <thead >
@@ -85,7 +85,7 @@ export default {
8585 data () {
8686 return {
8787 archiveBlogs: newsData .archiveBlogs ,
88- accordian : [],
88+ accordion : [],
8989 sortedEntries: {},
9090 isNavSidebarHiddenTouch: false ,
9191 };
@@ -121,7 +121,7 @@ export default {
121121 });
122122 Object .keys (blogArchivesByYear).forEach ((archiveYear ) => {
123123 sortedBlogArchives[archiveYear] = this .sortYearEntries (blogArchivesByYear[archiveYear]);
124- this .accordian .push (archiveYear);
124+ this .accordion .push (archiveYear);
125125 });
126126 this .sortedEntries = sortedBlogArchives;
127127 },
@@ -133,21 +133,21 @@ export default {
133133 });
134134 return sortedEntries;
135135 },
136- toggleAccordianAll () {
137- if (this .accordian .length > 1 ) {
138- this .accordian = [];
136+ toggleAccordionAll () {
137+ if (this .accordion .length > 1 ) {
138+ this .accordion = [];
139139 } else {
140140 Object .keys (this .sortedEntries ).forEach ((year ) => {
141- this .accordian .push (year);
141+ this .accordion .push (year);
142142 });
143143 }
144144 },
145- toggleAccordianItem (id ) {
146- if (this .accordian .includes (id)) {
147- const index = this .accordian .indexOf (id);
148- this .accordian .splice (index, 1 );
145+ toggleAccordionItem (id ) {
146+ if (this .accordion .includes (id)) {
147+ const index = this .accordion .indexOf (id);
148+ this .accordion .splice (index, 1 );
149149 } else {
150- this .accordian .push (id);
150+ this .accordion .push (id);
151151 }
152152 },
153153 },
0 commit comments