Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webclient: position buttons #77

Open
rx opened this issue Jan 18, 2019 · 1 comment
Open

Webclient: position buttons #77

rx opened this issue Jan 18, 2019 · 1 comment

Comments

@rx
Copy link
Owner

rx commented Jan 18, 2019

grid do
    column 6 do
      headline 'Outside Form'
      text_field
      text_field
      button 'Cancel', position: :right # BUG - filed as issue 
      button 'Continue', type: :raised, position: :right
    end
end

This results in the cancel button being hidden by the continue button.
Expected: Inline elements floating to the right would appear side by side.

@jadefish
Copy link
Collaborator

Currently, decorating a button with position: :right applies the following styles:

position: absolute;
right: 0;

Consider introducing an align attribute for the Grid component which would set the justify-items property of the grid's div.mdc-layout-grid__inner element accordingly.

The implementation of the Button component's position property would then need to be changed to set the justify-self property to start, end, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants