Skip to content

Commit

Permalink
improve menu item name consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieFox committed Oct 2, 2021
1 parent 90ccda2 commit c8747e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/component/menu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ menu.navData = [
// { name: 'Debug', active: true, overscroll: true, sub: ['Input', 'Button', 'Bookmark', 'Icon'] },
{ name: 'Theme', active: true, overscroll: true, sub: ['Preset', 'Saved', 'Style', 'Colour', 'Accent', 'Font', 'Radius', 'Shadow', 'Shade', 'Opacity', 'Background', 'Layout', 'Header', 'Bookmark'] },
{ name: 'Layout', active: false, overscroll: true, sub: ['Scaling', 'Area', 'Padding', 'Gutter', 'Alignment', 'Page'] },
{ name: 'Header', active: false, overscroll: true, sub: ['Area', 'Greeting', 'Transitional words', 'Clock', 'Date', 'Search'] },
{ name: 'Header', active: false, overscroll: true, sub: ['Alignment', 'Greeting', 'Transitional words', 'Clock', 'Date', 'Search'] },
{ name: 'Bookmark', active: false, overscroll: true, sub: ['General', 'Style', 'Orientation', 'Sort'] },
{ name: 'Group', active: false, overscroll: true, sub: ['Alignment', 'Name', 'Toolbar'] },
{ name: 'Toolbar', active: false, overscroll: true, sub: ['Size', 'Location', 'Position', 'Controls'] },
Expand Down
14 changes: 7 additions & 7 deletions src/component/menuContent/headerSetting/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import { applyCSSState } from '../../../utility/applyCSSState';
const headerSetting = {};

headerSetting.control = {
area: {},
alignment: {},
greeting: {},
transitional: {},
clock: {},
Expand Down Expand Up @@ -394,7 +394,7 @@ headerSetting.disable = () => {
};

headerSetting.edge = {
area: {},
alignment: {},
greeting: {},
transitional: {},
clock: {},
Expand All @@ -414,9 +414,9 @@ headerSetting.update = () => {

};

headerSetting.area = (parent) => {
headerSetting.alignment = (parent) => {

headerSetting.area.alignment = new Control_radioGrid({
headerSetting.alignment.alignment = new Control_radioGrid({
object: state.get.current(),
radioGroup: [
{ id: 'header-item-justify-left', labelText: 'Left', value: 'left', position: 1 },
Expand All @@ -433,15 +433,15 @@ headerSetting.area = (parent) => {
}
});

headerSetting.area.alignmentHelper = new Control_helperText({
headerSetting.alignment.alignmentHelper = new Control_helperText({
complexText: true,
text: [`Effects may not be visible if the ${(new Link({ text:'Search box size', href: '#menu-content-item-search'})).link().outerHTML} size is set to Auto and grows to fill available space.`]
});

parent.appendChild(
node('div', [
headerSetting.area.alignment.wrap(),
headerSetting.area.alignmentHelper.wrap()
headerSetting.alignment.alignment.wrap(),
headerSetting.alignment.alignmentHelper.wrap()
])
);

Expand Down

0 comments on commit c8747e4

Please sign in to comment.